import type { JSX } from 'react'; const PlanDivOrTdContainer = ( props: ( | React.HTMLAttributes< HTMLDivElement > | React.TdHTMLAttributes< HTMLTableCellElement > ) & { isTableCell?: boolean; scope?: string; isHeader?: boolean } ): JSX.Element => { const { children, isTableCell, isHeader, ...otherProps } = props; if ( isHeader ) { return { children }; } return isTableCell ? ( { children } ) : (
{ children }
); }; export default PlanDivOrTdContainer;