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

export const IconRedirect16 = 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"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    fillRule="evenodd"
                    d="M8 3.517a1 1 0 0 1 1.62-.784l5.348 4.233a1 1 0 0 1 0 1.568L9.62 12.767A1 1 0 0 1 8 11.983v-1.545c-.76-.043-1.484.003-2.254.218-.994.279-2.118.856-3.507 1.99a.99.99 0 0 1-1.128.096.96.96 0 0 1-.445-1.099c.415-1.5 1.425-3.141 2.808-4.412C4.69 6.114 6.244 5.241 8 5.042zM9.5 4.55v1.2a.75.75 0 0 1-.75.75c-1.586 0-3.067.739-4.261 1.836a9 9 0 0 0-1.635 2.014c.878-.553 1.695-.916 2.488-1.138 1.247-.35 2.377-.331 3.49-.207a.75.75 0 0 1 .668.745v1.2l4.042-3.2z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
