import { Collapse, Progress } from '@mantine/core'; import { type MRT_TableInstance } from '../types'; interface Props = {}> { isTopToolbar: boolean; table: MRT_TableInstance; } export const MRT_ProgressBar = = {}>({ isTopToolbar, table, }: Props) => { const { options: { mantineProgressProps }, getState, } = table; const { isSaving, showProgressBars } = getState(); const linearProgressProps = mantineProgressProps instanceof Function ? mantineProgressProps({ isTopToolbar, table }) : mantineProgressProps; return ( ); };