import { Link } from "react-router-dom"; import "./Card.css"; export function Card({ children, interactive = false, padded = true, className = "", to, ...props }) { const Component = to ? Link : "div"; return ( {children} ); } export function CardHeader({ title, subtitle, action, className = "" }) { return (
{title &&

{title}

} {subtitle &&

{subtitle}

}
{action &&
{action}
}
); } export function CardBody({ children, className = "" }) { return
{children}
; }