mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
30 lines
779 B
TypeScript
30 lines
779 B
TypeScript
import { useSession } from "next-auth/react";
|
|
import Head from "next/head";
|
|
import type { ReactElement } from "react";
|
|
import Layout from "../components/layout";
|
|
import Settings from "../components/settings";
|
|
import type { NextPageWithLayout } from "./_app";
|
|
|
|
const DashboardPage: NextPageWithLayout = () => {
|
|
const status = useSession();
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Dashboard | Documenso</title>
|
|
</Head>
|
|
<div>
|
|
<p>This is the dashboard page.</p>
|
|
<div>Mail: {status?.data?.user?.email?.toString()}</div>
|
|
<div>{status.status}</div>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
// todo layout as component
|
|
DashboardPage.getLayout = function getLayout(page: ReactElement) {
|
|
return <Layout>{page}</Layout>;
|
|
};
|
|
|
|
export default DashboardPage;
|