import { CenterLayout, FullPageLayout, NextLinkComposed, useUser } from "@witel/webapp-builder"; import { Button, Card, CardActions, CardContent, Stack, Typography } from "@mui/material"; import { useTranslations } from "next-intl"; import VolunteerActivismIcon from "@mui/icons-material/VolunteerActivism"; import DirectionsCarIcon from "@mui/icons-material/DirectionsCar"; const FirstComponent = () => { const { user } = useUser(); const t = useTranslations(); return ( {user.permissions.includes("can_request_navgan_loan") ? ( {t("Dashboard.request_navgan_loan")} {t("Dashboard.navgan_loan_description")} {t("Dashboard.request_refahi_loan")} {t("Dashboard.refahi_loan_description")} ) : ( <> {t("Dashboard.go_to_followUp-loan")} )} ); }; export default FirstComponent;