import { useSelector } from 'state' import styled from 'styles' export default function Brush(): JSX.Element { const brush = useSelector(({ data }) => data.brush) if (!brush) return null return ( ) } const BrushRect = styled('rect', { fill: '$brushFill', stroke: '$brushStroke', zStrokeWidth: 1, })