import { WebApplication } from '@/Application/Application' import { ChallengePrompt } from '@standardnotes/services' import { RefObject, useState } from 'react' import Button from '../Button/Button' import Icon from '../Icon/Icon' import { InputValue } from './InputValue' type Props = { application: WebApplication onValueChange: (value: InputValue['value'], prompt: ChallengePrompt) => void prompt: ChallengePrompt buttonRef: RefObject contextData?: Record } const U2FPrompt = ({ application, onValueChange, prompt, buttonRef, contextData }: Props) => { const [authenticatorResponse, setAuthenticatorResponse] = useState | null>(null) const [error, setError] = useState('') return (
{error &&
{error}
}
) } export default U2FPrompt