cal.pub0.org/packages/features/bookings/Booker/utils/layout.ts

7 lines
274 B
TypeScript

import type { BookerLayouts } from "@calcom/prisma/zod-utils";
import { bookerLayoutOptions } from "@calcom/prisma/zod-utils";
export const validateLayout = (layout?: BookerLayouts | null) => {
return bookerLayoutOptions.find((validLayout) => validLayout === layout);
};