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

export const IconSkipBack16 = 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="M11.241 2.5C12.401 1.682 14 2.51 14 3.93v8.14c0 1.418-1.6 2.247-2.759 1.43L5.475 9.43a1.75 1.75 0 0 1 0-2.86zM2.75 2.25A.75.75 0 0 1 3.5 3v10A.75.75 0 0 1 2 13V3a.75.75 0 0 1 .75-.75m9.75 1.68a.25.25 0 0 0-.395-.204L6.34 7.796a.25.25 0 0 0 0 .408l5.765 4.07a.25.25 0 0 0 .395-.204z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
