import DashboardPassengerOfficeComponent from "@/components/dashboard/passenger-office";
import {parse} from "next-useragent";

export default function PassengerOffice() {
    return (
        <DashboardPassengerOfficeComponent/>
    );
}

export async function getServerSideProps({req, locale}) {
    const {isBot} = parse(req.headers["user-agent"]);
    return {
        props: {
            messages: (await import(`&/locales/${locale}/app.json`)).default,
            title: "Dashboard.passenger_office_page",
            isBot,
            locale,
            layout: {name: 'DashboardLayout', props: {permissions: ["manage_passenger_office_navgan"]}}
        },
    };
}
