import classNames from 'classnames' import { ReactElement, ReactNode } from 'react' import Text from 'components/Text' interface Props { children: ReactNode className?: string contentClassName?: string onClick?: () => void title?: string | ReactElement id?: string } export default function Card(props: Props) { return (
{typeof props.title === 'string' ? ( {props.title} ) : typeof props.title === 'object' ? ( props.title ) : null}
{props.children}
) }