| 3 | import { cn } from "@/lib/utils"; |
| 4 | |
| 5 | function Table({ className, ...props }: React.ComponentProps<"table">) { |
| 6 | return ( |
| 7 | <div |
| 8 | className="relative w-full overflow-x-auto" |
| 9 | data-slot="table-container" |
| 10 | > |
| 11 | <table |
| 12 | className={cn( |
| 13 | "w-full caption-bottom in-data-[slot=frame]:border-separate in-data-[slot=frame]:border-spacing-0 text-sm", |
| 14 | className, |
| 15 | )} |
| 16 | data-slot="table" |
| 17 | {...props} |
| 18 | /> |
| 19 | </div> |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | function TableHeader({ className, ...props }: React.ComponentProps<"thead">) { |
| 24 | return ( |