import type * as React from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { cn } from "@/lib/cn"; type SectionCardProps = React.ComponentProps & { title: React.ReactNode; description?: React.ReactNode; icon?: React.ReactNode; headerAction?: React.ReactNode; contentClassName?: string; }; export function SectionCard({ title, description, icon, headerAction, children, className, contentClassName, ...props }: SectionCardProps) { return (
{icon} {title}
{headerAction}
{description && {description}}
{children}
); } type ResourceSectionProps = SectionCardProps & { count: number; emptyIcon: React.ReactNode; emptyTitle: string; emptyDescription: string; }; export function ResourceSection({ count, emptyIcon, emptyTitle, emptyDescription, children, ...props }: ResourceSectionProps) { return ( {String(count).padStart(2, "0")} } > {count === 0 ? (
{emptyIcon}

{emptyTitle}

{emptyDescription}

) : ( children )}
); } export function TableActions({ className, ...props }: React.ComponentProps<"div">) { return
; }