17 lines
594 B
TypeScript
17 lines
594 B
TypeScript
import { CalendarToggleContainerComponent } from "@calcom/features/troubleshooter/components/CalendarToggleContainerComponent";
|
|
import { trpc } from "@calcom/trpc/react";
|
|
|
|
export function CalendarToggleContainer() {
|
|
const { data, isLoading } =
|
|
trpc.viewer.calendars.connectedCalendars.useQuery();
|
|
|
|
return (
|
|
<CalendarToggleContainerComponent
|
|
connectedCalendars={data?.connectedCalendars ?? []}
|
|
isLoading={isLoading}
|
|
manageCalendarsAction={{ href: "/settings/my-account/calendars" }}
|
|
installCalendarAction={{ href: "/apps/categories/calendar" }}
|
|
/>
|
|
);
|
|
}
|