36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import type { Metadata } from "next";
|
|
|
|
import { SiteFooter } from "@/components/site-footer";
|
|
import { SiteHeader } from "@/components/site-header";
|
|
import { fallbackHome } from "@/lib/fallback-data";
|
|
|
|
import "./globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "ККПАБ",
|
|
description: "Современный сайт консультационного клинического патологоанатомического бюро",
|
|
};
|
|
|
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
const site = fallbackHome.site;
|
|
|
|
return (
|
|
<html lang="ru">
|
|
<body>
|
|
<div className="shell">
|
|
<SiteHeader siteName={site.site_name} tagline={site.tagline} phone={site.phone} />
|
|
{children}
|
|
<SiteFooter
|
|
siteName={site.site_name}
|
|
phone={site.phone}
|
|
email={site.email}
|
|
address={`${site.city}, ${site.address}`}
|
|
workingHours={site.working_hours}
|
|
/>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|
|
|