Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deps,
footerComponent,
gridName,
mobileBreakpointWidth = props.mobileBreakpointWidth || 800,
onError,
onRowClick,
rowComponent,
rowMobileComponent,
storage,
toolbarOptions = props.toolbarOptions || new ToolbarOptions(),
detailComponent,
} = props;
const classes = useStyles({});
const tbTableInstance = useTbTable(columns, dataSource, {
callbacks: { onError },
componentName: gridName,
deps,
pagination: {
itemsPerPage: toolbarOptions.itemsPerPage,
},
storage,
});
const [isMobileResolution] = useResolutionSwitch(mobileBreakpointWidth, timeout);
if (isMobileResolution) {
toolbarOptions.SetMobileMode();
return (