summaryrefslogtreecommitdiff
path: root/src/services/accounts/AccountForm.tsx
blob: fe834edbe8b888d46c969831dd9446fddcef92ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;