import * as React from 'react' import { cn } from '@/lib/utils' const Table = ({ className, containerClassName, ...props }: React.ComponentProps<'table'> & { /** Escape hatch for the scroll container — e.g. `overflow-x-visible` so a * sticky header can resolve against the page scroller instead of this box. */ containerClassName?: string }) => (
) const TableHeader = ({ className, ...props }: React.ComponentProps<'thead'>) => ( ) const TableBody = ({ className, ...props }: React.ComponentProps<'tbody'>) => ( ) const TableFooter = ({ className, ...props }: React.ComponentProps<'tfoot'>) => ( tr]:last:border-b-0', className)} {...props} /> ) const TableRow = ({ className, ...props }: React.ComponentProps<'tr'>) => ( ) const TableHead = ({ className, ...props }: React.ComponentProps<'th'>) => (
) const TableCell = ({ className, ...props }: React.ComponentProps<'td'>) => ( ) const TableCaption = ({ className, ...props }: React.ComponentProps<'caption'>) => (
) export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption }