Files
cal.diy/packages/platform/atoms/calendar-view/CalendarViewComponent.tsx
T
38b43f75ba refactor: remove circular dependencies from CalendarView atom (#27850)
* fix: decouple large calendar from features

* fix: move calendar to features since this is the better approach

* chore: move OOO slots to features

* feat: add DefaultOutOfOfficeSlot fallback for calendar OOO rendering

Co-Authored-By: [email protected] <[email protected]>

* chore: cleanup unused LargeCalendar component

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-02-17 08:14:33 +00:00

32 lines
1.0 KiB
TypeScript

import { Header } from "@calcom/features/bookings/components/Header";
import { BookerSection } from "@calcom/features/bookings/components/Section";
import { LargeCalendar } from "./components/LargeCalendar";
import { bookerLayoutOptions } from "@calcom/prisma/zod-utils";
import { AtomsWrapper } from "../src/components/atoms-wrapper";
export const CalendarViewComponent = () => {
return (
<AtomsWrapper>
<BookerSection area="header" className="bg-default dark:bg-muted sticky top-0 z-10">
<Header
isCalendarView={true}
isMyLink={true}
eventSlug="calendar-view"
enabledLayouts={bookerLayoutOptions}
extraDays={7}
isMobile={false}
nextSlots={6}
/>
</BookerSection>
<BookerSection
key="large-calendar"
area="main"
visible={true}
className="border-subtle sticky top-0 ml-px h-full md:border-l">
<LargeCalendar extraDays={7} isLoading={false} />
</BookerSection>
</AtomsWrapper>
);
};