import type { ElementType, ReactNode } from 'react'; type CardPadding = 'none' | 'sm' | 'md' | 'lg'; type CardProps = { children: ReactNode; padding?: CardPadding; as?: T; className?: string; } & Omit, 'as' | 'children' | 'className'>; const paddingClassMap: Record = { none: '', sm: 'p-3', md: 'p-4', lg: 'p-6', }; export function Card({ children, as, className = '', padding = 'md', ...props }: CardProps) { const Component = as ?? 'div'; return ( {children} ); }