Files
myeasycms-v2/apps/web/components/cms-page-shell.tsx
T. Zehetbauer c6d564836f
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 17m4s
Workflow / ⚫️ Test (push) Has been skipped
fix: add missing newlines at the end of JSON files; clean up formatting in page components
2026-04-02 11:02:58 +02:00

39 lines
875 B
TypeScript

import type { ReactNode } from 'react';
import { AppBreadcrumbs } from '@kit/ui/app-breadcrumbs';
import { PageBody } from '@kit/ui/page';
import { TeamAccountLayoutPageHeader } from '~/home/[account]/_components/team-account-layout-page-header';
interface CmsPageShellProps {
account: string;
title: string;
description?: string;
children: ReactNode;
}
/**
* Shared CMS page shell — wraps PageBody + header + breadcrumbs.
* Use in every CMS feature page to maintain consistent layout.
*/
export function CmsPageShell({
account,
title,
description,
children,
}: CmsPageShellProps) {
return (
<>
<TeamAccountLayoutPageHeader
account={account}
title={title}
description={
description !== undefined ? description : <AppBreadcrumbs />
}
/>
<PageBody>{children}</PageBody>
</>
);
}