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

export const IconVideo16 = 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="M8.75 3A2.25 2.25 0 0 1 11 5.25v.818l3.019-2.09c.824-.596 1.98-.008 1.981 1.013v6.018c0 1.021-1.157 1.609-1.981 1.012L11 9.932v.819A2.25 2.25 0 0 1 8.75 13h-6.5A2.25 2.25 0 0 1 0 10.75v-5.5A2.25 2.25 0 0 1 2.25 3zm-6.5 1.5a.75.75 0 0 0-.75.75v5.5c0 .414.336.75.75.75h6.5a.75.75 0 0 0 .75-.75v-5.5a.75.75 0 0 0-.75-.75zm8.838 3.332a.204.204 0 0 0 0 .336l3.412 2.363V5.47z"
                />
            </svg>
        );
    }
);
