import * as React from 'react'
import { cn } from '@/lib/utils'
const Table = React.forwardRef<
React.HTMLAttributes<HTMLTableElement>
>(({ className, ...props }, ref) => (
<div className="relative w-full overflow-auto">
'w-full caption-bottom border-border dark:border-darkBorder border-2 text-sm',
Table.displayName = 'Table'
const TableHeader = React.forwardRef<
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
<thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />
TableHeader.displayName = 'TableHeader'
const TableBody = React.forwardRef<
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
className={cn('[&_tr:last-child]:border-0', className)}
TableBody.displayName = 'TableBody'
const TableFooter = React.forwardRef<
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
'border-t border-t-black bg-main font-base [&>tr]:last:border-b-0',
TableFooter.displayName = 'TableFooter'
const TableRow = React.forwardRef<
React.HTMLAttributes<HTMLTableRowElement>
>(({ className, ...props }, ref) => (
'border-b border-border text-text dark:border-darkBorder transition-colors bg-main font-base data-[state=selected]:bg-white dark:data-[state=selected]:bg-secondaryBlack dark:data-[state=selected]:text-darkText',
TableRow.displayName = 'TableRow'
const TableHead = React.forwardRef<
React.ThHTMLAttributes<HTMLTableCellElement>
>(({ className, ...props }, ref) => (
'h-12 px-4 text-left align-middle font-heading text-black [&:has([role=checkbox])]:pr-0',
TableHead.displayName = 'TableHead'
const TableCell = React.forwardRef<
React.TdHTMLAttributes<HTMLTableCellElement>
>(({ className, ...props }, ref) => (
'p-4 align-middle font-base [&:has([role=checkbox])]:pr-0',
TableCell.displayName = 'TableCell'
const TableCaption = React.forwardRef<
React.HTMLAttributes<HTMLTableCaptionElement>
>(({ className, ...props }, ref) => (
className={cn('mt-4 text-sm text-black font-base', className)}
TableCaption.displayName = 'TableCaption'