forked from Transparency/kgroad-frontend2
21 lines
368 B
TypeScript
21 lines
368 B
TypeScript
import "./SectionHeader.scss";
|
|
|
|
interface ISectionHeader {
|
|
children: React.ReactNode;
|
|
description?: string;
|
|
}
|
|
|
|
const SectionHeader: React.FC<ISectionHeader> = ({
|
|
children,
|
|
description,
|
|
}: ISectionHeader) => {
|
|
return (
|
|
<div className="section-header">
|
|
<h3>{children}</h3>
|
|
<p>{description}</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default SectionHeader;
|