23 lines
494 B
TypeScript
23 lines
494 B
TypeScript
import type { ReactNode } from "react";
|
||
import Link from "next/link";
|
||
|
||
import "./globals.css";
|
||
|
||
export const metadata = {
|
||
title: "Магазин",
|
||
};
|
||
|
||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||
return (
|
||
<html lang="ru">
|
||
<body>
|
||
<header>
|
||
<Link href="/">Каталог</Link>
|
||
<Link href="/cart">Корзина</Link>
|
||
</header>
|
||
<main>{children}</main>
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|