import React, { FC } from 'react'; import classnames from 'classnames'; import styles from './index.less'; interface PageProps { title?: string; imgSrc?: any; children?: any; style?: string; rightView?: any; require?: boolean; } const CardDiv: FC = ({ title, children, imgSrc, style, rightView, require = false, }) => { return (
{!!imgSrc && } {!!require &&
*
} {!!title &&
{title}
} {!!rightView && rightView}
{children}
); }; export default CardDiv;