iconSliders.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import {forwardRef} from 'react';
  2. import {css} from '@emotion/react';
  3. import theme from 'sentry/utils/theme';
  4. import {SvgIcon, SVGIconProps} from './svgIcon';
  5. interface Props extends SVGIconProps {
  6. direction?: 'up' | 'right' | 'down' | 'left';
  7. }
  8. const IconSliders = forwardRef<SVGSVGElement, Props>(
  9. ({direction = 'up', ...props}, ref) => {
  10. return (
  11. <SvgIcon
  12. {...props}
  13. ref={ref}
  14. css={
  15. direction
  16. ? css`
  17. transform: rotate(${theme.iconDirections[direction]}deg);
  18. `
  19. : undefined
  20. }
  21. >
  22. <path d="M4.33,14a2.86,2.86,0,1,1,2.86-2.85A2.86,2.86,0,0,1,4.33,14Zm0-4.21a1.36,1.36,0,1,0,1.36,1.36A1.35,1.35,0,0,0,4.33,9.75Z" />
  23. <path d="M11.71,7.75a2.86,2.86,0,1,1,2.85-2.86A2.86,2.86,0,0,1,11.71,7.75Zm0-4.21a1.36,1.36,0,1,0,1.35,1.35A1.36,1.36,0,0,0,11.71,3.54Z" />
  24. <path d="M15.19,11.86H6.44a.75.75,0,0,1,0-1.5h8.75a.75.75,0,0,1,0,1.5Z" />
  25. <path d="M2.23,11.86H.81a.75.75,0,0,1,0-1.5H2.23a.75.75,0,1,1,0,1.5Z" />
  26. <path d="M15.19,5.64H13.81a.75.75,0,0,1,0-1.5h1.38a.75.75,0,0,1,0,1.5Z" />
  27. <path d="M9.6,5.64H.81a.75.75,0,1,1,0-1.5H9.6a.75.75,0,0,1,0,1.5Z" />
  28. </SvgIcon>
  29. );
  30. }
  31. );
  32. IconSliders.displayName = 'IconSliders';
  33. export {IconSliders};