iconFocus.tsx 1.5 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. isFocused?: boolean;
  6. }
  7. const IconFocus = forwardRef<SVGSVGElement, Props>(
  8. ({isFocused = true, ...props}, ref) => {
  9. return (
  10. <SvgIcon {...props} ref={ref}>
  11. {isFocused ? (
  12. <Fragment>
  13. <path d="M8,15.97C3.6,15.97.03,12.4.03,8S3.6.03,8,.03s7.97,3.58,7.97,7.97-3.58,7.97-7.97,7.97ZM8,1.53c-3.57,0-6.47,2.9-6.47,6.47s2.9,6.47,6.47,6.47,6.47-2.9,6.47-6.47S11.57,1.53,8,1.53Z" />
  14. <path d="M8,12.36c-2.4,0-4.36-1.96-4.36-4.36s1.96-4.36,4.36-4.36,4.36,1.96,4.36,4.36-1.96,4.36-4.36,4.36ZM8,5.14c-1.58,0-2.86,1.28-2.86,2.86s1.28,2.86,2.86,2.86,2.86-1.28,2.86-2.86-1.28-2.86-2.86-2.86Z" />
  15. </Fragment>
  16. ) : (
  17. <Fragment>
  18. <path d="M8,15.97C3.6,15.97.03,12.4.03,8S3.6.03,8,.03s7.97,3.58,7.97,7.97-3.58,7.97-7.97,7.97ZM8,1.53c-3.57,0-6.47,2.9-6.47,6.47s2.9,6.47,6.47,6.47,6.47-2.9,6.47-6.47S11.57,1.53,8,1.53Z" />
  19. <path d="M8,12.36c-2.4,0-4.36-1.96-4.36-4.36s1.96-4.36,4.36-4.36,4.36,1.96,4.36,4.36-1.96,4.36-4.36,4.36ZM8,5.14c-1.58,0-2.86,1.28-2.86,2.86s1.28,2.86,2.86,2.86,2.86-1.28,2.86-2.86-1.28-2.86-2.86-2.86Z" />
  20. <path d="M15.26,15.97c-.19,0-.38-.07-.53-.22L.21,1.31c-.29-.29-.29-.77,0-1.06C.5-.04.97-.05,1.26.25l14.53,14.45c.29.29.29.77,0,1.06-.15.15-.34.22-.53.22Z" />
  21. </Fragment>
  22. )}
  23. </SvgIcon>
  24. );
  25. }
  26. );
  27. IconFocus.displayName = 'IconFocus';
  28. export {IconFocus};