"use client"; import classNames from "@calcom/ui/classNames"; import { ArrowLeftIcon, RotateCwIcon } from "@coss/ui/icons"; import type { ReactNode } from "react"; export type ICalendarSwitchProps = { title: string; externalId: string; type: string; isChecked: boolean; name: string; isLastItemInList?: boolean; destination?: boolean; credentialId: number; delegationCredentialId: string | null; eventTypeId: number | null; disabled?: boolean; }; export function CalendarSwitchComponent( props: ICalendarSwitchProps & { isLoading: boolean; children: ReactNode; translations?: { spanText?: string; }; } ) { const { externalId, name, isLoading, translations = { spanText: "Adding events to", }, children, } = props; return (