silverwolf-x's picture
download
raw
824 Bytes
import { ReactNode } from "react";
import { useIntl } from "react-intl";
import Head from "next/head";
import Nav from "./Nav";
interface LayoutProps {
title?: string;
description?: string;
children: ReactNode;
}
export default function Layout({ title, description, children }: LayoutProps) {
const intl = useIntl();
title ||= intl.formatMessage({
defaultMessage: "React Intl Next.js Example",
description: "Default document title",
});
description ||= intl.formatMessage({
defaultMessage: "This page is powered by Next.js",
description: "Default document description",
});
return (
<>
<Head>
<title>{title}</title>
<meta name="description" content={description} />
</Head>
<header>
<Nav />
</header>
{children}
</>
);
}

Xet Storage Details

Size:
824 Bytes
·
Xet hash:
fdf4040e95fe74c60ddb6c6bd7e98c41d33d44cea87b1795f7b02fd04f72bb4d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.