import * as React from 'react'; import styled from '@emotion/styled'; import { SimpleClientRect } from '../../states/SelectionBoxState'; export interface SelectionBoxWidgetProps { rect: SimpleClientRect; } namespace S { export const Container = styled.div` position: absolute; background-color: rgba(0, 192, 255, 0.2); border: solid 2px rgb(0, 192, 255); `; } export class SelectionBoxWidget extends React.Component { render() { const { rect } = this.props; if (!rect) return null; return ( ); } }