You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
591 B
20 lines
591 B
import { useMode } from "../../stores/useMode";
|
|
import { MODES } from "../../config";
|
|
import { PendingTable } from "./PendingTable/PendingTable";
|
|
import { OnApprovalTable } from "./OnApprovalTable/OnApprovalTable";
|
|
import { WorkingTable } from "./WorkingTable/WorkingTable";
|
|
|
|
export const TableWrapper = ({ fullWidth }) => {
|
|
const { mode } = useMode();
|
|
|
|
if (mode === MODES.ON_APPROVAL) {
|
|
return <OnApprovalTable fullWidth={fullWidth} />;
|
|
}
|
|
|
|
if (mode === MODES.WORKING) {
|
|
return <WorkingTable fullWidth={fullWidth} />;
|
|
}
|
|
|
|
return <PendingTable fullWidth={fullWidth} />;
|
|
};
|