import type * as React from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; export type WidgetCardProps = { title: string; subtitle: string; children: React.ReactNode; icon: React.ReactNode; action?: React.ReactNode; }; type WidgetCardShellProps = WidgetCardProps & { contentClassName?: string; contentRef?: React.Ref; overlay?: React.ReactNode; }; export default function WidgetCard({ title, subtitle, icon, children, action, contentClassName, contentRef, overlay, }: WidgetCardShellProps) { return (
{icon} {title} {subtitle}
{action &&
{action}
}
{children} {overlay}
); }