import { forwardRef } from 'react' import { Form, FormControlProps } from 'react-bootstrap' import classnames from 'classnames' interface CIAMSixDigitsInputProps extends FormControlProps { value: string | undefined } const separator = '\u2007' // figure space const CIAMSixDigitsInput = forwardRef< HTMLInputElement, CIAMSixDigitsInputProps >(({ className, onChange, value, ...props }, ref) => { const group1 = value?.slice(0, 3) || '' const group2 = value?.slice(3, 6) || '' const displayValue = group2 ? `${group1}${separator}${group2}` : group1 return (