added current user profile to navigatorbar

This commit is contained in:
Ren Amamiya
2023-02-24 10:34:47 +07:00
parent f6d687cec9
commit 745c9141a0
9 changed files with 519 additions and 15 deletions

View File

@@ -0,0 +1,35 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import BaseLayout from '@layouts/baseLayout';
import { GetStaticPaths } from 'next';
import { JSXElementConstructor, ReactElement, ReactFragment, ReactPortal } from 'react';
export default function Page({ pubkey }: { pubkey: string }) {
return <div>{pubkey}</div>;
}
export const getStaticPaths: GetStaticPaths = async () => {
return {
paths: [],
fallback: 'blocking',
};
};
export async function getStaticProps(context) {
const pubkey = context.params.pubkey;
return {
props: { pubkey },
};
}
Page.getLayout = function getLayout(
page:
| string
| number
| boolean
| ReactElement<unknown, string | JSXElementConstructor<unknown>>
| ReactFragment
| ReactPortal
) {
return <BaseLayout>{page}</BaseLayout>;
};