24 lines
684 B
JavaScript
24 lines
684 B
JavaScript
import DashboardPassengerBossComponent from "@/components/dashboard/passenger-boss";
|
|
import TitlePage from "@/core/components/TitlePage";
|
|
import WithAuthMiddleware from "@/middlewares/WithAuth";
|
|
import { parse } from "next-useragent";
|
|
|
|
export default function PassengerBoss() {
|
|
return (
|
|
<WithAuthMiddleware>
|
|
<TitlePage text="Dashboard.passenger_boss_page" />
|
|
<DashboardPassengerBossComponent />
|
|
</WithAuthMiddleware>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps({ req, locale }) {
|
|
const { isBot } = parse(req.headers["user-agent"]);
|
|
return {
|
|
props: {
|
|
messages: (await import(`&/locales/${locale}/app.json`)).default,
|
|
isBot,
|
|
},
|
|
};
|
|
}
|