iconSliders.tsx 1.3 KB

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