import { ServiceParams } from '../../lib/ServiceContext'; import { Account } from '../types'; import Form from './AccountForm'; const service: ServiceParams = { route: 'accounts', name: 'Счета', nameSingular: 'Счёт', tableFields: [ { key: 'name', label: 'Название' }, { key: 'currency', label: 'Валюта' }, { key: 'balance', label: 'Баланс' }, ], searchBy: ['name'], default: { name: '', balance: 0, }, Form, }; export default service;