diff options
Diffstat (limited to 'src/services/accounts/AccountForm.tsx')
-rw-r--r-- | src/services/accounts/AccountForm.tsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/services/accounts/AccountForm.tsx b/src/services/accounts/AccountForm.tsx new file mode 100644 index 0000000..fe834ed --- /dev/null +++ b/src/services/accounts/AccountForm.tsx @@ -0,0 +1,22 @@ +import React from 'react'; +import { Form } from 'formik'; +import Input from '../../components/Input'; +import Select from '../../components/Select'; + +const currencyOptions = [ + { key: 'BYN', label: 'BYN' }, + { key: 'USD', label: 'USD' }, + { key: 'EUR', label: 'EUR' }, +]; + +const AccountForm: React.FC = () => { + return ( + <Form id="form"> + <Input name="name" label="Название" /> + <Input name="code" label="Номер счёта" /> + <Select name="currency" label="Валюта" options={currencyOptions} /> + </Form> + ); +}; + +export default AccountForm; |