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

export const IconSkip24 = 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={24}
                height={24}
                fill="none"
                viewBox="0 0 24 24"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M12 1c3.012 0 5.742 1.21 7.729 3.172a1 1 0 0 1 .1.1A10.97 10.97 0 0 1 23 12c0 6.075-4.925 11-11 11-3.012 0-5.742-1.21-7.729-3.172a1 1 0 0 1-.1-.1A10.97 10.97 0 0 1 1 12C1 5.925 5.925 1 12 1M5.834 19.227A9.5 9.5 0 0 0 19.227 5.834zM12 2.5a9.5 9.5 0 0 0-7.227 15.666L18.166 4.773A9.46 9.46 0 0 0 12 2.5"
                />
            </svg>
        );
    }
);
