import { parse } from "next-useragent";
import DashboardLoanFollowUpComponent from "@/components/dashboard/refahi/loan-followup";

export default function LoanFollowUp() {
    return <DashboardLoanFollowUpComponent />;
}

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_followup",
            isBot,
            locale,
            layout: { name: "DashboardLayout", props: { permissions: ["manage_vezarat_eghtesad_loans"] } },
        },
    };
}
