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

6 lines
240 B
TypeScript

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