import React, { FC, useState } from 'react' import { Modal, Text, View } from 'react-native' import Button from '../button/Button' import Input from '../input/Input' import s from './styles' import { IEnterPasswordProps } from './types' const EnterPassword: FC = ({ styles, texts, onSubmit, isLoading, apiError, }) => { const [password, setPassword] = useState('') const handleOnSubmit = () => { if (password.length > 0) onSubmit?.(password) } return ( {texts?.title || 'Password is required for this event'} {!!apiError && {apiError}}