import { Devices, LocationTick, Mobile, PasswordCheck, Personalcard, ProfileCircle, Setting as SettingIcon, Shield, Sms, } from 'iconsax-react'; import { type TFunction } from 'i18next'; export function getNavConfig(t: TFunction) { return [ { text: t('side.account'), getIcon: (selected: boolean) => selected ? ( ) : ( ), path: '/profile', children: [ { text: t('side.personalInfo'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/profile#info', }, { text: t('side.phoneNumber'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/profile#contact-info', }, { text: t('side.email'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/profile#email', }, ], }, { text: t('side.security'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/security', children: [ { text: t('side.password'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/security#password', }, { text: t('side.verifiedAddress'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/security#locations', }, { text: t('side.recentLogins'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/security#sessions', }, ], }, { text: t('side.activeDevices'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/devices', }, { text: t('side.settings'), getIcon: (sel: boolean) => sel ? ( ) : ( ), path: '/setting', }, ]; }