mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
18 lines
450 B
TypeScript
18 lines
450 B
TypeScript
import { InferGetStaticPropsType } from 'next';
|
|
|
|
import { ConnectedPage } from '#components/ConnectedPage';
|
|
import { PlayerPage } from '#pages/player/[username]';
|
|
|
|
export const getStaticProps = async () => ({
|
|
props: {},
|
|
revalidate: 1,
|
|
});
|
|
|
|
type Props = InferGetStaticPropsType<typeof getStaticProps>;
|
|
|
|
const CurrentUserPage: React.FC<Props> = () => (
|
|
<ConnectedPage page={PlayerPage} label="your profile" />
|
|
);
|
|
|
|
export default CurrentUserPage;
|