import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, Icon } from "@calcom/ui"; 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) => ( ))}
); };