mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
14 lines
No EOL
356 B
JavaScript
14 lines
No EOL
356 B
JavaScript
import React from 'react';
|
|
import {Title} from '../Folder';
|
|
|
|
export class StackSection extends React.Component {
|
|
|
|
render() {
|
|
const {title, children, isClosed, onTitleClick} = this.props;
|
|
return <React.Fragment>
|
|
<Title isClosed={isClosed} onClick={onTitleClick}>{title}</Title>
|
|
{!isClosed && children}
|
|
</React.Fragment>;
|
|
}
|
|
|
|
} |