import { PropsWithChildren } from 'react'; import { Widget, WidgetBody } from '@@/Widget'; interface Props { // workaround to remove the widget, ideally we should have a different component to wrap the table with a widget noWidget?: boolean; 'aria-label'?: string; } export function TableContainer({ children, noWidget = false, 'aria-label': ariaLabel, }: PropsWithChildren) { if (noWidget) { return (
{children}
); } return (
{children}
); }