import { cn } from "@/lib/utils"; import { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from "react"; interface TableProps { children: React.ReactNode; className?: string; } export function Table({ children, className }: TableProps) { return (
{children}
); } export function TableHead({ children }: TableProps) { return {children}; } export function TableBody({ children }: TableProps) { return {children}; } export function TableRow({ children, className, onClick, ...rest }: TableProps & { onClick?: () => void } & HTMLAttributes) { return ( {children} ); } export function Th({ children, className, ...rest }: TableProps & ThHTMLAttributes) { return {children}; } export function Td({ children, className, ...rest }: TableProps & TdHTMLAttributes) { return {children}; } export function EmptyState({ message = "No data yet" }: { message?: string }) { return (
{message}
); }