gab-social/app/javascript/gabsocial/components/panel/panel_layout.js
mgabdev 280dc51d85 Large update for all components
reorganization, linting, updating file imports, consolidation
warning: there will be errors in this commit
todo: update webpack, add missing styles, scss files, consolidate the rest of components within features/*
2019-08-07 01:02:36 -04:00

26 lines
594 B
JavaScript

import './panel.scss';
export default class PanelLayout extends PureComponent {
static propTypes = {
title: PropTypes.string,
icon: PropTypes.string,
children: PropTypes.node,
};
render() {
const {title, icon, children} = this.props;
return (
<div className='panel'>
<div className='panel-header'>
{icon && <Icon id={icon} className='panel-header__icon' />}
<span className='panel-header__title'>{title}</span>
</div>
<div className='panel__content'>
{children}
</div>
</div>
);
};
};