import { css } from '@emotion/react' import React, { useRef } from 'react' import useResizeObserver from 'use-resize-observer' import { GlobalStyle } from '../src/shared/components' const wrapperStyle = css` padding: 10px; height: calc(100vh - 20px); & > * + * { margin-left: 15px; } ` const sizeIndicatorStyle = css` position: absolute; font-size: 12px; right: 4px; top: 4px; ` const StylesWrapperDecorator = (styleFn) => { const ref = useRef(null) const { width, height } = useResizeObserver({ ref }) return (