import React , { forwardRef , memo , TableHTMLAttributes } from 'react' ; import { StyledTableBody } from './styled' ; export interface BodyProps extends TableHTMLAttributes < HTMLTableSectionElement > { withFirstRowBorder ? : boolean ; } interface PrivateProps { forwardedRef ? : React . Ref < HTMLTableSectionElement > ; } const RawBody = ( props ) => < StyledTableBody ref = { props . forwardedRef } { ... props } />; export const Body = memo ( forwardRef < HTMLTableSectionElement , BodyProps > ( ( props , ref ) => < RawBody { ... props } forwardedRef = { ref } / > ) ) ;