import { useState } from 'react' import { t } from '@/shared/i18n' export function Otp({ value, onInput, error, label = t('ui.otp.label'), helper = t('ui.otp.helper'), }: { value: string onInput: (value: string) => void error?: string label?: string helper?: string }) { const [focused, setFocused] = useState(false) const [position, setPosition] = useState(0) return (
{error || helper}