import { ReactNode } from "react"; import { Alert } from "@calcom/ui/Alert"; import Shell from "@components/Shell"; import RoutingNavBar from "../components/RoutingNavBar"; import { getSerializableForm } from "../utils"; const RoutingShell: React.FC<{ form: ReturnType; heading: ReactNode; appUrl: string; children: ReactNode; }> = function RoutingShell({ children, form, heading, appUrl }) { return (
{!form.routes?.length ? ( ) : null} {!form.fields.length ? ( ) : null}
{children}
); }; export default RoutingShell;