import FormBox from "../components/FormBox"; import { useTranslation } from "react-i18next"; import { getUserInfoFromSession } from "../util/util"; function Home() { const { t } = useTranslation(); const holidayList = [{ date: '23 May, 2024', name: 'Buddha Purnima' }, { date: '15 June, 2024', name: 'Raja Sankranti' }]; const homePageNotifications = ['hpn_complete_before_31', 'hpn_npa', 'hpn_helpdesk_contact', 'hpn_rupay_kcc_time', 'hpn_rupay_kcc_atm']; const userInformation = getUserInfoFromSession(); return (
    {holidayList.map((holiday, index) => (
  • {t(holiday.date)} - {t(holiday.name)}
  • ))}
    { Object.keys(userInformation).map((key, index) => (
  • {t(key)}: {t(userInformation[key])}
  • )) }
    {homePageNotifications.map((notification, index) => (
  • {t(notification)}
  • ))}
); } export default Home;