mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-25 09:24:21 +00:00
20 lines
320 B
TypeScript
20 lines
320 B
TypeScript
import React from "react"
|
|
|
|
|
|
export interface ChapterProps {
|
|
children: React.ReactNode,
|
|
heading: React.ReactNode,
|
|
columns: number,
|
|
}
|
|
|
|
|
|
export function Chapter(props: ChapterProps) {
|
|
return (
|
|
<section className={`chapter-${props.columns}`}>
|
|
<h2>
|
|
{props.heading}
|
|
</h2>
|
|
{props.children}
|
|
</section>
|
|
)
|
|
}
|