import Form from './ProductForm'; import { ServiceParams } from '../../lib/ServiceContext'; import { Product } from '../types'; const service: ServiceParams = { route: 'products', name: 'Товары', nameSingular: 'Товар', tableFields: [ { key: 'name', label: 'Название' }, { key: 'price', label: 'Цена' }, { key: 'quantity', label: 'На складе' }, ], searchBy: ['name'], default: { name: '', price: 0, quantity: 0, }, Form, }; export default service;