1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-23 00:14:21 +00:00
triennale-appunti-steffo/components/Chapter.tsx

21 lines
320 B
TypeScript
Raw Normal View History

2023-03-15 11:13:11 +00:00
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>
)
}