import React, { useState } from 'react' import { Button, Input, Checkbox, Form } from 'antd' import { Typography, Col, Row } from 'antd' import { LockOutlined, UserOutlined } from '@ant-design/icons' import { validation } from '../../helpers' const { Title } = Typography const InitialForm = ({ onLogin, children }) => { const [login, setLogin] = useState('') const [password, setPassword] = useState('') const [checked, setChecked] = useState(false) const input = () => { onLogin(login, password) && setPassword('') && setLogin('') } return ( <>
* Login must be at least 5 characters
* Use a combination of 8 or more letters, numbers, and symbols