import { ReactNode } from 'react' ; import { TableBody } from '../table' ; interface Props { children ? : ReactNode ; colSpan ? : number ; loading ? : boolean ; } const OrderableTableBody = ( { children , colSpan = 0 , loading , ... rest } ) => ( < TableBody { ... rest } colSpan = { colSpan + 1 } loading = { loading } > { children } < /TableBody>); export default OrderableTableBody ;