import { forwardRef } from 'react';
import type { InputProps } from './Input';
import { Input } from './Input';

export type AlphabetInputProps = Omit<InputProps, 'type' | 'characterMask'>;

/**
 * Single-line field that accepts **Unicode letters and spaces only** — digits and other symbols are blocked / stripped.
 */
export const AlphabetInput = forwardRef<HTMLInputElement, AlphabetInputProps>(function AlphabetInput(props, ref) {
  return <Input ref={ref} type="text" characterMask="letters" {...props} />;
});
