plane/web/pages/index.tsx
2024-05-01 14:54:35 +05:30

24 lines
679 B
TypeScript

import { ReactElement } from "react";
// components
import { SignUpView } from "@/components/page-views";
// helpers
import { EPageTypes } from "@/helpers/authentication.helper";
// layouts
import DefaultLayout from "@/layouts/default-layout";
// type
import { NextPageWithLayout } from "@/lib/types";
// wrappers
import { AuthenticationWrapper } from "@/lib/wrappers";
const HomePage: NextPageWithLayout = () => <SignUpView />;
HomePage.getLayout = function getLayout(page: ReactElement) {
return (
<DefaultLayout>
<AuthenticationWrapper pageType={EPageTypes.NON_AUTHENTICATED}>{page}</AuthenticationWrapper>
</DefaultLayout>
);
};
export default HomePage;