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

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

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

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

const ProfileConfig = {
  settings: {
    layout: {
      config: {},
    },
  },
  auth: authRoles.user,
  routes: [
    {
      path: 'profile',
      element: <Profile />,
    },
  ],
};

export default ProfileConfig;
