import { ServiceParams } from '../../lib/ServiceContext'; import { transformDate } from '../transforms'; const service: ServiceParams = { route: 'account', name: 'Расчётный счёт', tableFields: [ { key: 'date', label: 'Дата', transform: transformDate }, { key: 'amount', label: 'Сумма' }, ], actions: [ { name: 'Загрузить выписку', route: '/transfers/upload', }, ], rowLink: item => `/transfers?date=${item.date}`, }; export default service;