import * as React from 'react'; import classNames from 'classnames'; import { ComponentClassNames } from '../shared/constants'; import { ForwardRefPrimitive, Primitive, TableCellElement, BaseTableCellProps, TableCellProps, } from '../types'; import { View } from '../View'; const TableCellPrimitive: Primitive = ( { as: asElementTag = 'td', children, className, ...rest }, ref ) => ( {children} ); export const TableCell: ForwardRefPrimitive< BaseTableCellProps, TableCellElement > = React.forwardRef(TableCellPrimitive); TableCell.displayName = 'TableCell';