import classNames from "classnames"; import React, { useEffect, useState } from "react"; import { components } from "react-select"; import { SingleValueProps, OptionProps, SingleValue, ActionMeta } from "react-select"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { DestinationCalendar } from "@calcom/prisma/client"; import { trpc } from "@calcom/trpc/react"; import Select from "@calcom/ui/v2/core/form/select"; 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