import classNames from 'classnames'; import { FC, WebCellProps } from 'web-cell'; import { Image, ImageProps } from '../Media/Image'; import { TextColor, PositionY } from '../type'; export interface CardProps extends WebCellProps { bg?: TextColor; text?: TextColor | 'white' | 'muted'; border?: TextColor; body?: boolean; } export const Card: FC = ({ className, bg, text, border, body, children, ...props }) => (
{body ? {children} : children}
); export const CardHeader: FC> = ({ className = '', children, ...props }) => (
{children}
); export const CardBody: FC> = ({ className = '', children, ...props }) => (
{children}
); export const CardFooter: FC> = ({ className = '', children, ...props }) => (
{children}
); export const CardTitle: FC> = ({ className = '', children, ...props }) => (
{children}
); export interface CardImgProps extends ImageProps { variant?: PositionY; } export const CardImg: FC = ({ className = '', variant, ...props }) => ( );