Files
Shifted/components/InfoPage.tsx
2026-02-10 01:14:19 +00:00

27 lines
720 B
TypeScript

import Footer from "./Footer";
import StaticLogoHeader from "./StaticLogoHeader";
type InfoPageProps = {
title: string;
subtitle?: string;
children: React.ReactNode;
};
export default function InfoPage({ title, subtitle, children }: InfoPageProps) {
return (
<main>
<StaticLogoHeader />
<section className="section">
<div className="container info-page">
<div className="info-page__header">
<h1 className="info-page__title">{title}</h1>
{subtitle ? <p className="info-page__subtitle">{subtitle}</p> : null}
</div>
<div className="info-page__body">{children}</div>
</div>
</section>
<Footer />
</main>
);
}