import { Form, Input } from 'antd'; import { useTranslation } from 'react-i18next'; interface IProps { value?: string | undefined; onChange?: (val: string | undefined) => void; maxLength?: number; } export const DelimiterInput = ({ value, onChange, maxLength }: IProps) => { const nextValue = value?.replaceAll('\n', '\\n'); const handleInputChange = (e: React.ChangeEvent) => { const val = e.target.value; const nextValue = val.replaceAll('\\n', '\n'); onChange?.(nextValue); }; return ( ); }; const Delimiter = () => { const { t } = useTranslation(); return ( ); }; export default Delimiter;