import { lazy } from 'react';
import i18next from 'i18next';

import { authRoles } from '../../../configs/consts';
import en from './i18n/en';

i18next.addResourceBundle('en', 'historyPage', en);

const History = lazy(() => import('./History'));

const HistoryConfig = {
  settings: {
    layout: {
      config: {},
    },
  },
  auth: authRoles.user,
  routes: [
    {
      path: 'history',
      element: <History />,
    },
  ],
};

export default HistoryConfig;
