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

export const IconMap16 = 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="M5.2 1.187c.339-.17.738-.176 1.083-.017l3.983 1.844 4.004-1.668A1.25 1.25 0 0 1 16 2.5v8.94c0 .474-.268.907-.691 1.119L10.8 14.814a1.25 1.25 0 0 1-1.084.015l-3.983-1.844-4.004 1.668A1.25 1.25 0 0 1 0 13.5V4.559c0-.473.268-.907.691-1.119zM1.5 4.713v8.412L5 11.666V2.963zm5 6.975 3 1.388V4.313l-3-1.39zM11 4.333v8.703l3.5-1.75V2.875z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
