mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-24 17:18:02 +00:00
18 lines
424 B
JavaScript
18 lines
424 B
JavaScript
![]() |
import React from "react";
|
||
|
import clsx from "clsx";
|
||
|
import styles from "../styles/section.module.scss";
|
||
|
|
||
|
const Section = ({ title, children, withBackground }) => (
|
||
|
<section
|
||
|
className={clsx(styles.section, withBackground && styles.withBackground)}
|
||
|
>
|
||
|
<div className="container">
|
||
|
<hr />
|
||
|
<h2 className={styles.sectionTitle}>{title}</h2>
|
||
|
</div>
|
||
|
{children}
|
||
|
</section>
|
||
|
);
|
||
|
|
||
|
export default Section;
|