import React from 'react'; import { Card } from 'antd'; import { CardProps } from 'antd/lib/card'; export type PageCoreProps = { extra?: React.ReactElement, title?: string, cardProps?: CardProps, } export const PageCore:React.FunctionComponent = (props) => { const { cardProps = {}, extra, title, children } = props; const { tabList, onTabChange, activeTabKey, ...restCardProps } = cardProps; return (
{ tabList ? ( { children } ) : ( { children } ) }
); }