styled.ts 315 B

123456789101112
  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. `;
  7. export const PolyLine = styled('polyline')<{ isCovered: boolean }>`
  8. pointer-events: visiblepainted;
  9. cursor: ${(props) => (props.isCovered ? 'pointer' : 'default')};
  10. `;