import { forwardRef, useMemo } from 'react';
import { IconProps } from './types';

export const IconRunning16 = forwardRef<SVGSVGElement, IconProps>(
    ({ color = 'currentColor', title, ...props }, svgRef) => {
        const titleId = useMemo(
            () =>
                title
                    ? 'title-' + Math.random().toString(36).substr(2, 9)
                    : undefined,
            [title]
        );
        return (
            <svg
                xmlns="http://www.w3.org/2000/svg"
                width={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                className="hds-flight-icon--animation-running"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <g fill={color} fillRule="evenodd" clipRule="evenodd">
                    <path d="M8 1.5a6.48 6.48 0 0 0-4.707 2.017.75.75 0 1 1-1.086-1.034A7.98 7.98 0 0 1 8 0a7.98 7.98 0 0 1 5.793 2.483.75.75 0 1 1-1.086 1.034A6.48 6.48 0 0 0 8 1.5M1.236 5.279a.75.75 0 0 1 .514.927 6.503 6.503 0 0 0 4.727 8.115.75.75 0 1 1-.349 1.459 8.003 8.003 0 0 1-5.82-9.986.75.75 0 0 1 .928-.515m13.528 0a.75.75 0 0 1 .928.515 8.003 8.003 0 0 1-5.82 9.986.75.75 0 0 1-.35-1.459 6.503 6.503 0 0 0 4.728-8.115.75.75 0 0 1 .514-.927" />
                    <path
                        d="M8 4.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M3 8a5 5 0 1 1 10 0A5 5 0 0 1 3 8"
                        opacity={0.2}
                    />
                </g>
            </svg>
        );
    }
);
