import { UseFormReturn } from "react-hook-form"; import { Props } from "react-phone-number-input/react-hook-form"; import { EventLocationType } from "@calcom/app-store/locations"; import { FiMapPin } from "../components/icon"; type BookingFormValues = { name: string; email: string; notes?: string; locationType?: EventLocationType["type"]; guests?: { email: string }[]; address?: string; attendeeAddress?: string; phone?: string; hostPhoneNumber?: string; // Maybe come up with a better way to name this to distingish between two types of phone numbers customInputs?: { [key: string]: string | boolean; }; rescheduleReason?: string; smsReminderNumber?: string; }; export type AddressInputProps = Props< { value: string; id: string; placeholder: string; required: boolean; bookingForm: UseFormReturn; }, FormValues >; function AddressInput({ bookingForm, name, className, ...rest }: AddressInputProps) { return (
); } export default AddressInput;