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

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

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

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

const FavoritesConfig = {
  settings: {
    layout: {
      config: {},
    },
  },
  auth: authRoles.user,
  routes: [
    {
      path: 'favorites',
      element: <Favorites />,
    },
  ],
};

export default FavoritesConfig;
