mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-03 17:40:07 +00:00
26 lines
710 B
TypeScript
26 lines
710 B
TypeScript
import type { PropsWithChildren } from 'react';
|
|
import Footer from '~/components/Footer';
|
|
import Header from '~/components/Header';
|
|
import { Nav } from '~/components/Nav';
|
|
import { Providers } from './providers';
|
|
|
|
export default function Layout({ children }: PropsWithChildren) {
|
|
return (
|
|
<Providers>
|
|
<main className="mx-auto max-w-7xl px-4 lg:max-w-full">
|
|
<Header />
|
|
<div className="relative top-6 mx-auto max-w-7xl gap-6 lg:max-w-full lg:flex">
|
|
<div className="lg:sticky lg:top-23 lg:h-[calc(100vh_-_105px)]">
|
|
<Nav />
|
|
</div>
|
|
|
|
<div className="mx-auto max-w-5xl min-w-xs w-full pb-10">
|
|
{children}
|
|
<Footer />
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</Providers>
|
|
);
|
|
}
|