in modules/monochrome/src/float-panel/stories.js [46:73]
render() {
const {x, y, size, minimized} = this.state;
return (
<div style={{height: '100vh'}}>
<AutoSizer>
{({width, height}) => (
<FloatPanel
title={'My Photo'}
parentWidth={width}
parentHeight={height}
x={x}
y={y}
width={size}
height={size}
minimized={minimized}
movable={boolean('movable', true)}
resizable={boolean('resizable', true)}
minimizable={boolean('minimizable', true)}
onUpdate={this._onUpdatePanel}
>
<img src="https://avatars2.githubusercontent.com/u/2059298?v=3&s=460" width="100%" />
</FloatPanel>
)}
</AutoSizer>
</div>
);
}