invix_test_task/web/app/layout.tsx

23 lines
494 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
);
}