import React from 'react'; import styles from './Card.module.css'; export interface CardProps { children: React.ReactNode; className?: string; padding?: 'sm' | 'md' | 'lg'; header?: React.ReactNode; headerVariant?: 'primary' | 'secondary'; footer?: React.ReactNode; onClick?: React.MouseEventHandler; } export function Card({ children, className, padding = 'md', header, headerVariant = 'primary', footer, onClick, }: CardProps) { return (
{header !== undefined && (
{header}
)}
{children}
{footer !== undefined &&
{footer}
}
); }