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

export const IconVolumeX16 = 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}
                    d="M7.033 2.686A1.25 1.25 0 0 1 9 3.71v8.58a1.25 1.25 0 0 1-1.967 1.024L3.728 11H1.25C.56 11 0 10.44 0 9.75v-3.5C0 5.56.56 5 1.25 5h2.478zm-2.51 3.587c-.21.147-.46.227-.716.227H1.5v3h2.307c.256 0 .506.079.716.226L7.5 11.809V4.19zm9.697-.553a.751.751 0 0 1 1.06 1.06L14.06 8l1.22 1.22a.751.751 0 0 1-1.06 1.06L13 9.06l-1.22 1.22a.75.75 0 0 1-1.06-1.06L11.94 8l-1.22-1.22a.75.75 0 0 1 1.06-1.06L13 6.94z"
                />
            </svg>
        );
    }
);
