import { Box, Button, ButtonGroup } from "@prismicio/editor-ui"; import { useRouter } from "next/router"; import { FC, PropsWithChildren, Suspense } from "react"; import { Breadcrumb } from "@/components/Breadcrumb"; import { PageLayout, PageLayoutContent, PageLayoutHeader, PageLayoutPane, } from "@/components/PageLayout"; import { useActiveEnvironment } from "@/features/environments/useActiveEnvironment"; import { Navigation } from "@/features/navigation/Navigation"; export const AppLayout: FC = ({ children, ...otherProps }) => { return ( {children} ); }; const environmentTopBorderColorMap = { prod: "purple", stage: "indigo", dev: "amber", } as const; const PageLayoutWithActiveEnvironment: FC = ({ children, ...otherProps }) => { const { activeEnvironment } = useActiveEnvironment(); const borderTopColor = activeEnvironment ? environmentTopBorderColorMap[activeEnvironment.kind] : "purple"; return ( {children} ); }; export const AppLayoutHeader: FC = ({ children, ...otherProps }) => ( {children} ); type AppLayoutBackButtonProps = { url: string }; export const AppLayoutBackButton: FC = ({ url, ...otherProps }) => { const router = useRouter(); return (