Files
Dorod-Sky/skyvern-frontend/src/routes/workflows/WorkflowsPageLayout.tsx

23 lines
528 B
TypeScript
Raw Normal View History

import { cn } from "@/util/utils";
2025-07-07 22:30:33 -04:00
import { Outlet, useMatch, useSearchParams } from "react-router-dom";
function WorkflowsPageLayout() {
2025-07-07 22:30:33 -04:00
const [searchParams] = useSearchParams();
const embed = searchParams.get("embed");
const match =
useMatch("/workflows/:workflowPermanentId/edit") ||
location.pathname.includes("debug") ||
embed === "true";
return (
<main
className={cn({
"container mx-auto": !match,
})}
>
<Outlet />
</main>
);
}
export { WorkflowsPageLayout };