import type { HTMLAttributes, ReactNode } from 'react'; import { cn } from '@/lib/utils/cn'; interface AppCardProps extends HTMLAttributes { title?: string; description?: string; action?: ReactNode; } export function AppCard({ title, description, action, className, children, ...props }: AppCardProps) { return ( {(title || description || action) && ( {title ? ( {title} ) : null} {description ? ( {description} ) : null} {action ? {action} : null} )} {children} ); }
{description}