import WelfareServicesComponent from "@/components/register/welfare-services";
import WithoutAuthMiddleware from "@/middlewares/WithoutAuth";
import {parse} from "next-useragent";

export default function Register() {
    return (
        <WithoutAuthMiddleware>
            <WelfareServicesComponent/>
        </WithoutAuthMiddleware>
    );
}

export async function getServerSideProps({req, locale}) {
    const {isBot} = parse(req.headers["user-agent"]);
    return {
        props: {
            messages: (await import(`&/locales/${locale}/app.json`)).default,
            title: "Titles.title_register_welfare_services_page",
            isBot,
        },
    };
}
