'use client'; import React from 'react'; import clsx from 'clsx'; import { useTable } from './TableRoot'; import Primitive from '~/core/primitives/Primitive'; const COMPONENT_NAME = 'TableCell'; export type TableCellAlign = 'start' | 'center' | 'end'; export type TableCellProps = Omit, 'align'> & { columnIndex?: number; /** Horizontal alignment of the cell content. Use `end` for numeric columns. */ align?: TableCellAlign; }; const TableCell = React.forwardRef, TableCellProps>( ({ children, className = 'cell', columnIndex, align, style, ...props }, ref) => { const { resizable, rootClass } = useTable(); const isResizable = resizable && columnIndex !== undefined; return ( {children} ); } ); TableCell.displayName = COMPONENT_NAME; export default TableCell;