import classNames from "classnames"; import { useEffect, useState } from "react"; import type { OptionProps, SingleValueProps } from "react-select"; import { components } from "react-select"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { DestinationCalendar } from "@calcom/prisma/client"; import { trpc } from "@calcom/trpc/react"; import { Select, Badge } from "@calcom/ui"; import { Check } from "@calcom/ui/components/icon"; interface Props { onChange: (value: { externalId: string; integration: string }) => void; isLoading?: boolean; hidePlaceholder?: boolean; /** The external Id of the connected calendar */ destinationCalendar?: DestinationCalendar | null; value: string | undefined; maxWidth?: number; } interface Option { label: string; value: string; subtitle: string; } const SingleValueComponent = ({ ...props }: SingleValueProps