"use client"; import type { ReactNode } from "react"; import { type ICalendarSwitchProps } from "@calcom/features/calendars/CalendarSwitch"; import { classNames } from "@calcom/lib"; import { Icon } from "../icon"; export function CalendarSwitchComponent( props: ICalendarSwitchProps & { isLoading: boolean; children: ReactNode; translations?: { spanText?: string; }; } ) { const { externalId, name, isLoading, translations = { spanText: "Adding events to", }, children, } = props; return (
{children}
{!!props.destination && ( {translations.spanText} )} {isLoading && }
); }