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