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

export const IconVideo24 = 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={24}
                height={24}
                fill="none"
                viewBox="0 0 24 24"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M14.25 4A2.75 2.75 0 0 1 17 6.75v3.139l4.127-3.324C22.264 5.613 24 6.421 24 7.908v8.184c0 1.487-1.738 2.296-2.875 1.34L17 14.078v3.173A2.75 2.75 0 0 1 14.25 20H2.75A2.75 2.75 0 0 1 0 17.25V6.75A2.75 2.75 0 0 1 2.75 4zM2.75 5.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h11.5c.69 0 1.25-.56 1.25-1.25V6.75c0-.69-.56-1.25-1.25-1.25zM22.5 7.908a.25.25 0 0 0-.411-.191l-.015.012-4.945 3.981a.347.347 0 0 0-.002.537l4.95 4.026.012.01a.25.25 0 0 0 .411-.191z"
                />
            </svg>
        );
    }
);
