import type { ComponentProps } from 'react' import { FormInput } from './FormInput' export const NameInput = (props: ComponentProps<'input'>) => ( ) const sanitize = (value: string) => value .normalize('NFC') .replace(/[^\p{L}\p{M}\s-]+/gu, '') .replace(/-+/g, '-') .replace(/\s+/g, ' ') .replace(/\s*-\s*/g, '-') .trim() .slice(0, 120)