iconSliders.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import * as React from 'react';
  2. import {css} from '@emotion/react';
  3. import theme from 'app/utils/theme';
  4. import SvgIcon from './svgIcon';
  5. type Props = React.ComponentProps<typeof SvgIcon> & {
  6. direction?: 'up' | 'right' | 'down' | 'left';
  7. };
  8. const IconSliders = React.forwardRef(function IconSliders(
  9. {direction = 'up', ...props}: Props,
  10. ref: React.Ref<SVGSVGElement>
  11. ) {
  12. return (
  13. <SvgIcon
  14. {...props}
  15. ref={ref}
  16. css={
  17. direction
  18. ? css`
  19. transform: rotate(${theme.iconDirections[direction]}deg);
  20. `
  21. : undefined
  22. }
  23. >
  24. <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" />
  25. <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" />
  26. <path d="M15.19,11.86H6.44a.75.75,0,0,1,0-1.5h8.75a.75.75,0,0,1,0,1.5Z" />
  27. <path d="M2.23,11.86H.81a.75.75,0,0,1,0-1.5H2.23a.75.75,0,1,1,0,1.5Z" />
  28. <path d="M15.19,5.64H13.81a.75.75,0,0,1,0-1.5h1.38a.75.75,0,0,1,0,1.5Z" />
  29. <path d="M9.6,5.64H.81a.75.75,0,1,1,0-1.5H9.6a.75.75,0,0,1,0,1.5Z" />
  30. </SvgIcon>
  31. );
  32. });
  33. IconSliders.displayName = 'IconSliders';
  34. export {IconSliders};