import { forwardRef } from 'react'; import { StyledTableCell } from './Table.style'; export interface TableCellProps extends React.HTMLProps { children: React.ReactNode; align?: 'left' | 'center' | 'right'; } export const TableCell = forwardRef((props, ref) => { const { children, align = 'left', ...otherProps } = props; return (
{children}
); }); TableCell.displayName = 'Table.Cell';