import type { ReactNode } from "react"; import Link from "next/link"; import { Loader2 } from "lucide-react"; import { buttonVariants } from "@/components/ui/button"; type TableLoadingRowProps = { colSpan: number; label?: string; }; export function TableLoadingRow({ colSpan, label = "Loading…", }: TableLoadingRowProps) { return (
{label}
); } type TableEmptyStateRowProps = { colSpan: number; icon: ReactNode; title: string; description: string; actionHref?: string; actionLabel?: string; }; export function TableEmptyStateRow({ colSpan, icon, title, description, actionHref, actionLabel, }: TableEmptyStateRowProps) { return (
{icon}

{title}

{description}

{actionHref && actionLabel ? ( {actionLabel} ) : null}
); }