import clsx from 'clsx'; import classes from './MRT_ProgressBar.module.css'; import { Collapse, Progress, type ProgressProps } from '@mantine/core'; import { type MRT_RowData, type MRT_TableInstance } from '../../types'; import { parseFromValuesOrFunc } from '../../utils/utils'; interface Props extends Partial { isTopToolbar: boolean; table: MRT_TableInstance; } export const MRT_ProgressBar = ({ isTopToolbar, table, ...rest }: Props) => { 'use no memo'; const { getState, options: { mantineProgressProps }, } = table; const { isSaving, showProgressBars } = getState(); const linearProgressProps = { ...parseFromValuesOrFunc(mantineProgressProps, { isTopToolbar, table, }), ...rest, }; return ( ); };