iconZoom.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. import {forwardRef, Fragment} from 'react';
  2. import type {SVGIconProps} from './svgIcon';
  3. import {SvgIcon} from './svgIcon';
  4. interface Props extends SVGIconProps {
  5. isZoomIn?: boolean;
  6. }
  7. const IconZoom = forwardRef<SVGSVGElement, Props>(({isZoomIn = false, ...props}, ref) => {
  8. return (
  9. <SvgIcon {...props} ref={ref}>
  10. {isZoomIn ? (
  11. <Fragment>
  12. <path d="m6,11.95C2.72,11.95.05,9.28.05,6S2.72.05,6,.05s5.95,2.67,5.95,5.95-2.67,5.95-5.95,5.95Zm0-10.41C3.54,1.55,1.55,3.54,1.55,6s2,4.45,4.45,4.45,4.45-2,4.45-4.45S8.45,1.55,6,1.55Z" />
  13. <path d="m15.2,15.95c-.19,0-.38-.07-.53-.22l-5.53-5.53c-.29-.29-.29-.77,0-1.06s.77-.29,1.06,0l5.53,5.53c.29.29.29.77,0,1.06-.15.15-.34.22-.53.22Z" />
  14. <path d="m8.81,6.75H3.19c-.41,0-.75-.34-.75-.75s.34-.75.75-.75h5.62c.41,0,.75.34.75.75s-.34.75-.75.75Z" />
  15. <path d="m6,9.56c-.41,0-.75-.34-.75-.75V3.19c0-.41.34-.75.75-.75s.75.34.75.75v5.62c0,.41-.34.75-.75.75Z" />
  16. </Fragment>
  17. ) : (
  18. <Fragment>
  19. <path d="m6,11.95C2.72,11.95.05,9.28.05,6S2.72.05,6,.05s5.95,2.67,5.95,5.95-2.67,5.95-5.95,5.95Zm0-10.41C3.54,1.55,1.55,3.54,1.55,6s2,4.45,4.45,4.45,4.45-2,4.45-4.45S8.45,1.55,6,1.55Z" />
  20. <path d="m15.2,15.95c-.19,0-.38-.07-.53-.22l-5.53-5.53c-.29-.29-.29-.77,0-1.06s.77-.29,1.06,0l5.53,5.53c.29.29.29.77,0,1.06-.15.15-.34.22-.53.22Z" />
  21. <path d="m8.81,6.75H3.19c-.41,0-.75-.34-.75-.75s.34-.75.75-.75h5.62c.41,0,.75.34.75.75s-.34.75-.75.75Z" />
  22. </Fragment>
  23. )}
  24. </SvgIcon>
  25. );
  26. });
  27. IconZoom.displayName = 'IconZoom';
  28. export {IconZoom};