import { cn } from "@/lib/utils"; import { type HTMLAttributes, type TdHTMLAttributes, type ThHTMLAttributes, forwardRef, } from "react"; const Table = forwardRef>( ({ className, ...props }, ref) => (
), ); Table.displayName = "Table"; const TableHeader = forwardRef< HTMLTableSectionElement, HTMLAttributes >(({ className, ...props }, ref) => ( )); TableHeader.displayName = "TableHeader"; const TableBody = forwardRef< HTMLTableSectionElement, HTMLAttributes >(({ className, ...props }, ref) => ( )); TableBody.displayName = "TableBody"; const TableFooter = forwardRef< HTMLTableSectionElement, HTMLAttributes >(({ className, ...props }, ref) => ( tr]:last:border-b-0", className, )} {...props} /> )); TableFooter.displayName = "TableFooter"; const TableRow = forwardRef< HTMLTableRowElement, HTMLAttributes >(({ className, ...props }, ref) => ( )); TableRow.displayName = "TableRow"; const TableHead = forwardRef< HTMLTableCellElement, ThHTMLAttributes >(({ className, ...props }, ref) => (
)); TableHead.displayName = "TableHead"; const TableCell = forwardRef< HTMLTableCellElement, TdHTMLAttributes >(({ className, ...props }, ref) => ( )); TableCell.displayName = "TableCell"; const TableCaption = forwardRef< HTMLTableCaptionElement, HTMLAttributes >(({ className, ...props }, ref) => (
)); TableCaption.displayName = "TableCaption"; export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };