import { cn } from '@/lib/utils' import { ReactNode } from 'react' type CardProps = { title?: string children?: ReactNode header?: ReactNode } type CardItemProps = { title?: string | ReactNode description?: string | ReactNode descriptionOutside?: string | ReactNode align?: 'start' | 'center' | 'end' actions?: ReactNode column?: boolean className?: string classNameWrapperAction?: string } export function CardItem({ title, description, descriptionOutside, className, classNameWrapperAction, align = 'center', column, actions, }: CardItemProps) { return ( <>

{title}

{description && ( {description} )}
{actions && (
{actions}
)}
{descriptionOutside && ( {descriptionOutside} )} ) } export function Card({ title, children, header }: CardProps) { return (
{title && (

{title}

)} {header && header} {children}
) }