import { useLocale } from "@calcom/lib/hooks/useLocale"; import { RouterInputs, trpc } from "@calcom/trpc/react"; import DestinationCalendarSelector from "@components/DestinationCalendarSelector"; interface ICreateEventsOnCalendarSelectProps { calendar?: RouterInputs["viewer"]["setDestinationCalendar"] | null; } const CreateEventsOnCalendarSelect = (props: ICreateEventsOnCalendarSelectProps) => { const { calendar } = props; const { t } = useLocale(); const mutation = trpc.viewer.setDestinationCalendar.useMutation(); return ( <>
{ mutation.mutate(calendar); }} hidePlaceholder />
); }; export { CreateEventsOnCalendarSelect };