import { ReactNode } from 'react'; import './Card.css'; interface CardProps { children: ReactNode; className?: string; onClick?: () => void; href?: string; variant?: 'default' | 'elevated' | 'accent'; } export function Card({ children, className = '', onClick, href, variant = 'default' }: CardProps) { const baseClass = `card card--${variant} ${className}`.trim(); if (href) { return ( {children} ); } if (onClick) { return (
{children}
); } return
{children}
; } interface CardHeaderProps { children: ReactNode; className?: string; } export function CardHeader({ children, className = '' }: CardHeaderProps) { return
{children}
; } interface CardBodyProps { children: ReactNode; className?: string; } export function CardBody({ children, className = '' }: CardBodyProps) { return
{children}
; } interface CardFooterProps { children: ReactNode; className?: string; } export function CardFooter({ children, className = '' }: CardFooterProps) { return
{children}
; }