mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 05:55:44 +01:00
22 lines
377 B
JavaScript
22 lines
377 B
JavaScript
//@flow
|
|
import * as React from "react";
|
|
|
|
type Props = {
|
|
label: string,
|
|
children?: React.Node
|
|
};
|
|
|
|
class Section extends React.Component<Props> {
|
|
render() {
|
|
const { label, children } = this.props;
|
|
return (
|
|
<div>
|
|
<p className="menu-label">{label}</p>
|
|
<ul className="menu-list">{children}</ul>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Section;
|