Files
sign/apps/web/pages/signup.tsx

24 lines
526 B
TypeScript
Raw Normal View History

import { NextPageContext } from "next";
2023-01-11 14:36:59 +01:00
import Head from "next/head";
import Signup from "../components/signup";
export default function SignupPage(props: { source: string }) {
2023-01-11 14:36:59 +01:00
return (
<>
<Head>
2023-01-11 15:22:09 +01:00
<title>Signup | Documenso</title>
2023-01-11 14:36:59 +01:00
</Head>
<Signup source={props.source}></Signup>
2023-01-11 14:36:59 +01:00
</>
);
2022-12-06 19:28:19 +01:00
}
export async function getServerSideProps(context: any) {
const signupSource: string = context.query["source"];
return {
props: {
source: signupSource ? signupSource : "",
},
};
}