import React, { forwardRef } from 'react'; import { cx } from '@leafygreen-ui/emotion'; import { useTableContext } from '../TableContext'; import { getCellEllipsisStyles, getCellStyles } from './Cell.styles'; import InternalCellBase from './InternalCellBase'; import { InternalCellProps } from '.'; /** * @internal */ const InternalCellWithoutRT = forwardRef< HTMLTableCellElement, InternalCellProps >(({ children, className, ...rest }: InternalCellProps, fwdRef) => { const { shouldTruncate = true } = useTableContext(); return (
{children}
); }); InternalCellWithoutRT.displayName = 'InternalCellWithoutRT'; export default InternalCellWithoutRT;