Files
calendar/packages/features/bookings/Booker/utils/layout.ts
T
Hariom BalharaandGitHub 2a8eca7885 chore: Update version in main for embeds that are already released. (#9822)
* Release latest embeds

* Release latest embeds

* Ensure that unpublished packages arent imported

* linter is important to catch unexpected imports

* Create new release

* Add a new patch
2023-07-21 16:46:18 +05:30

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);
};