styled.ts 358 B

123456789101112131415
  1. import styled from 'styled-components';
  2. export const SVG = styled.svg`
  3. pointer-events: none;
  4. user-select: none;
  5. touch-action: none;
  6. position: absolute;
  7. left: 0;
  8. top: 0;
  9. `;
  10. export const PolyLine = styled('polyline')<{ isCovered: boolean }>`
  11. pointer-events: visiblepainted;
  12. cursor: ${(props) => (props.isCovered ? 'pointer' : 'default')};
  13. `;