import type { ReactNode } from 'react'; interface PanelProps { title?: string; subtitle?: string; children: ReactNode; className?: string; actions?: ReactNode; noPad?: boolean; } export function Panel({ title, subtitle, children, className = '', actions, noPad }: PanelProps) { return (
{(title || actions) && (
{title &&

{title}

} {subtitle &&

{subtitle}

}
{actions &&
{actions}
}
)}
{children}
); }