import React from 'react'; import Collapse from '@mui/material/Collapse'; import LinearProgress from '@mui/material/LinearProgress'; import type { MRT_TableInstance } from '..'; interface Props = {}> { isTopToolbar: boolean; table: MRT_TableInstance; } export const MRT_LinearProgressBar = = {}>({ isTopToolbar, table, }: Props) => { const { options: { muiLinearProgressProps }, getState, } = table; const { isLoading, showProgressBars } = getState(); const linearProgressProps = muiLinearProgressProps instanceof Function ? muiLinearProgressProps({ isTopToolbar, table }) : muiLinearProgressProps; return ( ); };