mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
32 lines
760 B
TypeScript
32 lines
760 B
TypeScript
import UserInfo from 'components/pages/gists/user-info';
|
|
import UserInfoLoading from 'components/pages/gists/user-info-skeleton';
|
|
import { Metadata } from 'next';
|
|
import { ReactNode, Suspense } from 'react';
|
|
|
|
export const revalidate = 600;
|
|
export const metadata: Metadata = {
|
|
title: 'RUA - Gists',
|
|
};
|
|
|
|
export default async function PageLayout({
|
|
children,
|
|
}: {
|
|
children: ReactNode;
|
|
}) {
|
|
return (
|
|
<>
|
|
<main className="w-full max-w-5xl px-4 mx-auto lg:px-0">
|
|
<div className="md:flex">
|
|
<Suspense fallback={<UserInfoLoading />}>
|
|
<UserInfo />
|
|
</Suspense>
|
|
|
|
<div className="flex-1 px-1 py-4 overflow-hidden md:pl-8">
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</>
|
|
);
|
|
}
|