"use client"; /* eslint-disable react/display-name */ import { forwardRef } from "react"; import useDigitInput, { InputAttributes } from "react-digit-input"; import styles from "./DigitInput.module.css"; const DigitInputElement = forwardRef< HTMLInputElement, Omit & { autoFocus?: boolean; } >(({ ...props }, ref): any => ( <> )); const DigitSeparator = forwardRef< HTMLInputElement, Omit & { autoFocus?: boolean; } >( // eslint-disable-next-line @typescript-eslint/no-unused-vars ({ ...props }, ref): any => ( <> ) ); export const SixDigitInput = ({ value, onChange }: any) => { const digits = useDigitInput({ acceptedCharacters: /^\d$/, length: 6, value, onChange, }); return (
); };