40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import type { ReactNode } from "react";
|
|
import Link from "next/link";
|
|
import { PageHead, PageShell } from "@/components/page/Blocks";
|
|
|
|
interface LegalLayoutProps {
|
|
title: string;
|
|
children: ReactNode;
|
|
}
|
|
|
|
export default function LegalLayout({ title, children }: LegalLayoutProps) {
|
|
return (
|
|
<PageShell>
|
|
<PageHead crumbs={[{ label: title }]} title={title} />
|
|
|
|
<section className="subsec">
|
|
<div className="wrap grid12 legal">
|
|
<aside className="legal__side" aria-label="Rechtliches">
|
|
<nav>
|
|
<Link href="/impressum" aria-current={title === "Impressum" ? "page" : undefined}>
|
|
Impressum
|
|
</Link>
|
|
<Link href="/datenschutz" aria-current={title !== "Impressum" ? "page" : undefined}>
|
|
Datenschutz
|
|
</Link>
|
|
</nav>
|
|
<p>
|
|
Fragen zu Datenschutz oder rechtlichen Themen?{" "}
|
|
<Link href="/#contact" className="text-link">
|
|
Kontakt aufnehmen
|
|
</Link>
|
|
</p>
|
|
</aside>
|
|
|
|
<div className="legal__main legal-content">{children}</div>
|
|
</div>
|
|
</section>
|
|
</PageShell>
|
|
);
|
|
}
|