mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
32 lines
732 B
TypeScript
32 lines
732 B
TypeScript
import { useTroubleshooterStore } from "@calcom/features/troubleshooter/store";
|
|
|
|
import { CalendarViewPlatformWrapper } from "../../calendar-view/wrappers/CalendarViewPlatformWrapper";
|
|
|
|
export const LargeCalendar = (): JSX.Element | null => {
|
|
const event = useTroubleshooterStore((state) => state.event);
|
|
|
|
if (!event?.slug) return null;
|
|
|
|
if (event.teamId) {
|
|
return (
|
|
<CalendarViewPlatformWrapper
|
|
isEventTypeView={true}
|
|
teamId={event.teamId}
|
|
eventSlug={event.slug}
|
|
/>
|
|
);
|
|
}
|
|
|
|
if (event.username) {
|
|
return (
|
|
<CalendarViewPlatformWrapper
|
|
isEventTypeView={true}
|
|
username={event.username}
|
|
eventSlug={event.slug}
|
|
/>
|
|
);
|
|
}
|
|
|
|
return null;
|
|
};
|