gab-social/app/javascript/gabsocial/components/popover/popover_layout.js
2020-04-06 21:53:23 -04:00

25 lines
479 B
JavaScript

import Block from '../block'
export default class PopoverLayout extends PureComponent {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
width: PropTypes.number,
}
static defaultProps = {
width: 250,
}
render() {
const { children, className, width } = this.props
return (
<div className={className} style={{width: `${width}px`}}>
<Block>
{children}
</Block>
</div>
)
}
}