import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../form/dropdown"; import { FiChevronDown } from "../../icon"; interface IAddVariablesDropdown { addVariable: (variable: string) => void; isTextEditor?: boolean; variables: string[]; } export const AddVariablesDropdown = (props: IAddVariablesDropdown) => { const { t } = useLocale(); return (
{props.isTextEditor ? ( <>
{t("add_variable")}
+
) : (
{t("add_variable")}
)}
{t("add_dynamic_variables").toLocaleUpperCase()}
{props.variables.map((variable) => ( ))}
); };