22 lines
598 B
JavaScript
22 lines
598 B
JavaScript
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,
|
|
},
|
|
};
|
|
}
|