import type { ComponentType, ReactNode } from "react"; import type { LucideProps } from "lucide-react"; import { CardHeader } from "~/components/ui/card"; import { GradientIcon } from "~/components/ui/GradientIcon"; interface SectionCardHeaderProps { icon: ComponentType; title: string; right?: ReactNode; } /** * Consistent header for top-level section cards (My Leagues, Create a League, etc.). * Renders a gradient icon + xl bold title, with an optional right-side slot. */ export function SectionCardHeader({ icon, title, right }: SectionCardHeaderProps) { return (

{title}

{right}
); }