import { useClassList } from "../utils/useProps"; type CardProps = { classList?: any, class?: any, children?: any, bordered?: boolean, rised?: boolean, title?: any, style?: any, bodyStyle?: any, footer?: any } export function Card (props: CardProps) { const classList = () => useClassList(props, 'cm-card', { 'cm-card-bordered': props.bordered, 'cm-card-rised': props.rised, }); return
{ props.title ?
{ props.title }
: null }
{ props.children }
{ props.footer ? : null }
}