import {parse} from "next-useragent";
import DashboardNavganLoanManagementComponent from "@/components/dashboard/navgan-loan-management";

export default function NavganLoanManagement() {
    return (
        <DashboardNavganLoanManagementComponent/>
    );
}

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.loan_management_page",
            isBot,
            locale,
            layout: {name: 'DashboardLayout', props: {permissions: ["manage_navgan_loan"]}}
        },
    };
}
