mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-23 00:14:21 +00:00
19 lines
279 B
TypeScript
19 lines
279 B
TypeScript
import React from "react"
|
|
|
|
|
|
export interface TopicProps {
|
|
children: React.ReactNode,
|
|
heading: React.ReactNode,
|
|
}
|
|
|
|
|
|
export function Topic(props: TopicProps) {
|
|
return (
|
|
<section className="panel box">
|
|
<h3>
|
|
{props.heading}
|
|
</h3>
|
|
{props.children}
|
|
</section>
|
|
)
|
|
}
|