import React, { FC } from 'react'; import cx from 'classnames'; import Spin from './Spin'; export interface Props { children?: React.ReactChild; loading?: boolean; className?: string; title?: string; description?: string; cover?: JSX.Element | React.ReactNode | string; hoverable?: boolean; onClick?: () => void; } const Card: FC = ({ loading = false, className, title, description, cover, hoverable = false, children, onClick, }) => (
{cover &&
{cover}
}
{title &&

{title}

} {description && (

{description}

)}
{children}
); export default Card;