2024-08-26 21:31:42 +03:00
|
|
|
import { cn } from "@/util/utils";
|
|
|
|
|
import { Outlet, useMatch } from "react-router-dom";
|
2024-07-11 03:08:52 -07:00
|
|
|
|
|
|
|
|
function WorkflowsPageLayout() {
|
2024-09-25 07:15:02 -07:00
|
|
|
const match = useMatch("/workflows/:workflowPermanentId/edit");
|
2024-08-26 21:31:42 +03:00
|
|
|
|
2024-07-11 03:08:52 -07:00
|
|
|
return (
|
2024-08-26 21:31:42 +03:00
|
|
|
<main
|
|
|
|
|
className={cn({
|
2024-10-31 08:49:15 -07:00
|
|
|
"container mx-auto": !match,
|
2024-08-26 21:31:42 +03:00
|
|
|
})}
|
|
|
|
|
>
|
2024-07-11 03:08:52 -07:00
|
|
|
<Outlet />
|
|
|
|
|
</main>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { WorkflowsPageLayout };
|