import React, { forwardRef } from 'react'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { useTableContext } from '../TableContext'; import { getRowBaseStyles } from './Row.styles'; import { InternalRowBaseProps } from './Row.types'; import { useRowContext } from './RowContext'; /** * The base Row component, extended by `InternalRow(With/Without)RT` */ const InternalRowBase = forwardRef( ({ className, onClick, ...rest }: InternalRowBaseProps, forwardedRef) => { const { theme } = useDarkMode(); const { disabled } = useRowContext(); const { lgIds } = useTableContext(); return ( ); }, ); InternalRowBase.displayName = 'InternalRowBase'; export default InternalRowBase;