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

export const IconVideoOff24 = 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}
                    fillRule="evenodd"
                    d="M1.22 1.22a.75.75 0 0 1 1.06 0l20.5 20.5a.75.75 0 0 1-1.06 1.06l-4.815-4.813A2.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 4h.19L1.22 2.28a.75.75 0 0 1 0-1.06M2.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.25v-.69L4.44 5.5zM14.25 4A2.75 2.75 0 0 1 17 6.75v3.138l4.127-3.323C22.264 5.613 24 6.421 24 7.908v8.184c0 .702-.396 1.261-.923 1.543a.751.751 0 0 1-.708-1.324.25.25 0 0 0 .096-.086.24.24 0 0 0 .035-.133V7.908a.25.25 0 0 0-.411-.191l-.015.013-4.426 3.562a1.321 1.321 0 0 1-2.148-1.028V6.75c0-.69-.56-1.25-1.25-1.25H10.5a.75.75 0 0 1 0-1.5z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
