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

export const IconChannel16 = 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="M12.75 1a2.25 2.25 0 1 1-2.194 2.75H9c-.69 0-1.25.56-1.25 1.25v2.25h1.628a2.251 2.251 0 1 1 0 1.5H7.75V11c0 .69.56 1.25 1.25 1.25h1.556a2.25 2.25 0 1 1 .177 1.5H9A2.75 2.75 0 0 1 6.25 11V8.75h-.878a2.251 2.251 0 1 1 0-1.5h.878V5A2.75 2.75 0 0 1 9 2.25h1.733A2.25 2.25 0 0 1 12.75 1m0 11a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5m-9.5-4.75a.75.75 0 1 0 .75.764v-.028a.75.75 0 0 0-.75-.736m8.25 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5m1.25-4.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"
                />
            </svg>
        );
    }
);
