123456789101112131415161718192021222324252627282930313233 |
- import {forwardRef, Fragment} from 'react';
- import type {SVGIconProps} from './svgIcon';
- import {SvgIcon} from './svgIcon';
- interface Props extends SVGIconProps {
- isFocused?: boolean;
- }
- const IconFocus = forwardRef<SVGSVGElement, Props>(
- ({isFocused = false, ...props}, ref) => {
- return (
- <SvgIcon {...props} ref={ref}>
- {isFocused ? (
- <Fragment>
- <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" />
- <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" />
- </Fragment>
- ) : (
- <Fragment>
- <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" />
- <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" />
- <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" />
- </Fragment>
- )}
- </SvgIcon>
- );
- }
- );
- IconFocus.displayName = 'IconFocus';
- export {IconFocus};
|