import React, { HTMLAttributes } from 'react'
export interface Props {
inputType?: string
inputMode?: HTMLAttributes['inputMode']
choices?: { text: string; value: string }[]
placeholder?: string
}
export interface InternalProps {
value?: string
invalid?: boolean
validatorMessage?: string
onChange?: React.ChangeEventHandler
}
const ModalInput: React.FC = (props) => (
<>
{props.inputType === 'radios' && props.choices ? (
<>
{props.choices.map((choice) => (
))}
>
) : (
)}
{props.invalid && (
{props.validatorMessage}
)}
>
)
export default ModalInput