import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Icon } from "@calcom/ui"; import { Label } from "@calcom/ui/v2"; import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@calcom/ui/v2/core/Dropdown"; interface IAddVariablesDropdown { addVariable: (isEmailSubject: boolean, variable: string) => void; isEmailSubject: boolean; } const variables = [ "event_name", "event_date", "event_time", "location", "organizer_name", "attendee_name", "additional_notes", ]; export const AddVariablesDropdown = (props: IAddVariablesDropdown) => { const { t } = useLocale(); return (
{t("add_dynamic_variables").toLocaleUpperCase()}
{variables.map((variable) => ( ))}
); };