import { Tag, Tooltip, Typography } from 'antd'; import { useTranslation } from 'react-i18next'; import { REMARK_VARIABLES, REMARK_VAR_GROUPS, wrapToken } from '@/lib/remark/remarkVariables'; interface RemarkVarPickerProps { /** Called with the bare token (e.g. "EMAIL") when a chip is clicked. */ onPick: (token: string) => void; } /** * RemarkVarPicker is the grouped, tooltipped chip list of {{VAR}} tokens used by * the global remark-template field. */ export default function RemarkVarPicker({ onPick }: RemarkVarPickerProps) { const { t } = useTranslation(); return (