diff --git a/packages/atoms/availabilitylist/AvailabilityList.tsx b/packages/atoms/availabilitylist/AvailabilityList.tsx index 34901fe44f..4620cb0e47 100644 --- a/packages/atoms/availabilitylist/AvailabilityList.tsx +++ b/packages/atoms/availabilitylist/AvailabilityList.tsx @@ -1,18 +1,31 @@ +import { NewScheduleButton } from "availabilitylist/NewScheduleButton"; + +import type { HttpError } from "@calcom/lib/http-error"; import { Clock } from "@calcom/ui/components/icon"; import { EmptyScreen } from "./EmptyScreen"; import type { Schedule } from ".prisma/client"; -export function AvailabilityList({ schedules }: { schedules: Schedule[] | [] }) { +export function AvailabilityList({ + schedules, + onCreateMutation, +}: { + schedules: Schedule[] | []; + onCreateMutation: (values: { + onSucess: (schedule: Schedule) => void; + onError: (err: HttpError) => void; + }) => void; +}) { return ( <> {schedules.length === 0 ? ( -
+
} />
) : (