19 lines
440 B
Plaintext
19 lines
440 B
Plaintext
---
|
|
import type {
|
|
FormattedElement,
|
|
FormattedText,
|
|
Layout,
|
|
} from "@turbopress/api/types";
|
|
import RenderBody from "./body/RenderBody.astro";
|
|
import RenderHeader from "./header/RenderHeader.astro";
|
|
interface Props {
|
|
layout: Layout;
|
|
content?: (FormattedElement | FormattedText)[];
|
|
}
|
|
|
|
const { layout, content } = Astro.props;
|
|
---
|
|
|
|
<RenderHeader blocks={layout.header?.blocks} />
|
|
<RenderBody blocks={layout.body?.blocks} {content} />
|