import { Grid, Typography, Stack, } from '@mui/material'; import { useState, useEffect, lazy } from "react"; import Loadable from 'components/Loadable'; import { useIntl, FormattedMessage } from "react-intl"; import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' const BackgroundHead = { backgroundImage: `url(${titleBackgroundImg})`, width: 'auto', height: 'auto', backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundColor: '#0C489E', backgroundPosition: 'right' } const LoadingComponent = Loadable(lazy(() => import('pages/extra-pages/LoadingComponent'))); import DownloadIcon from '@mui/icons-material/Download'; const UserMenu = () => { const intl = useIntl(); const { locale } = intl; const [onReady, setOnReady] = useState(false); const pnspsurl = "https://"+window.location.hostname; useEffect(() => { setOnReady(true); }, [locale]); const tableStyle = { fontFamily: "arial, sans-serif", borderCollapse: "collapse", width: "100%", } const cellStyle = { border: "1px solid #dddddd", textAlign: "left", padding: "8px" }; const getRow = ({ title, en, zh, cn }) => { return <> {title} ; } return ( !onReady ? : (

{getRow({ title: , en: pnspsurl + "/user-guide/eng/01 - Create account - 1.pdf", zh: pnspsurl + "/user-guide/cht/01c - Create account - 1.pdf", cn: pnspsurl + "/user-guide/chs/01sc - Create account - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/02 - Login - 1.pdf", zh: pnspsurl + "/user-guide/cht/02c - Login - 1.pdf", cn: pnspsurl + "/user-guide/chs/02sc - Login - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/03 - Application for publishing a Public Notice in the Gazette - 1.pdf", zh: pnspsurl + "/user-guide/cht/03c - Application for publishing a Public Notice in the Gazette - 1.pdf", cn: pnspsurl + "/user-guide/chs/03sc - Application for publishing a Public Notice in the Gazette - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/04 - Proofreading reply (with correction) - 1.pdf", zh: pnspsurl + "/user-guide/cht/04c - Proofreading reply (with correction) - 1.pdf", cn: pnspsurl + "/user-guide/chs/04sc - Proofreading reply (with correction) - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/05 - Proofreading reply (pass for printing) - 1.pdf", zh: pnspsurl + "/user-guide/cht/05c - Proofreading reply (pass for printing) - 1.pdf", cn: pnspsurl + "/user-guide/chs/05sc - Proofreading reply (pass for printing) - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/06 - Cancellation of application for publishing a Public Notice in the Gazette - 1.pdf", zh: pnspsurl + "/user-guide/cht/06c - Cancellation of application for publishing a Public Notice in the Gazette - 1.pdf", cn: pnspsurl + "/user-guide/chs/06sc - Cancellation of application for publishing a Public Notice in the Gazette - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/07 - Forgot password - 1.pdf", zh: pnspsurl + "/user-guide/cht/07c - Forgot password - 1.pdf", cn: pnspsurl + "/user-guide/chs/07sc - Forgot password - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/08 - Change password - 1.pdf", zh: pnspsurl + "/user-guide/cht/08c - Change password - 1.pdf", cn: pnspsurl + "/user-guide/chs/08sc - Change password - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/09 - Language of email notification - 1.pdf", zh: pnspsurl + "/user-guide/cht/09c - Language of email notification - 1.pdf", cn: pnspsurl + "/user-guide/chs/09sc - Language of email notification - 1.pdf" })} {getRow({ title: , en: pnspsurl + "/user-guide/eng/10 - Download General Demand Note for making payment(s) - 1.pdf", zh: pnspsurl + "/user-guide/cht/10c - Download General Demand Note for making payment(s) - 1.pdf", cn: pnspsurl + "/user-guide/chs/10sc - Download General Demand Note for making payment(s) - 1.pdf" })}
English 繁體中文 简体中文

) ); } export default UserMenu;