import buildELTContent from '../build';
import { fetchData } from '../lib/requests';
import composeRequest from './lib/composeRequest';
import tableConfig from './lib/config';
import convertEltResult from './lib/convertEltResult';
import onSelectRow from './lib/onSelectRow';
import validation from './lib/validation';

const insType = 'osago';

export default buildELTContent({
  title: 'ОСАГО',
  insType,
  fetchData: fetchData(insType, composeRequest, convertEltResult),
  onSelectRow,
  tableConfig,
  validation,
});
