import type { PropsWithChildren, ReactNode } from 'react'; interface CardProps { title?: ReactNode; extra?: ReactNode; className?: string; } export function Card({ title, extra, children, className }: PropsWithChildren) { return (
{(title || extra) && (
{title}
{extra}
)} {children}
); }