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