39 lines
818 B
TypeScript
39 lines
818 B
TypeScript
import "./globals.css"
|
|
import Navbar from "@/components/Navbar"
|
|
import Providers from "../providers"
|
|
import { WideLayout } from "docs-ui"
|
|
import { Inter, Roboto_Mono } from "next/font/google"
|
|
import clsx from "clsx"
|
|
|
|
export const metadata = {
|
|
title: "Medusa API Reference",
|
|
description: "Check out Medusa's API reference",
|
|
}
|
|
|
|
const inter = Inter({
|
|
subsets: ["latin"],
|
|
variable: "--font-inter",
|
|
weight: ["400", "500"],
|
|
})
|
|
|
|
const robotoMono = Roboto_Mono({
|
|
subsets: ["latin"],
|
|
variable: "--font-roboto-mono",
|
|
})
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<WideLayout
|
|
ProvidersComponent={Providers}
|
|
NavbarComponent={Navbar}
|
|
bodyClassName={clsx(inter.variable, robotoMono.variable)}
|
|
>
|
|
{children}
|
|
</WideLayout>
|
|
)
|
|
}
|