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

export const IconCamera24 = 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.906 2c.64 0 1.23.35 1.536.912l1.015 1.859 2.924.14A2.75 2.75 0 0 1 23 7.656V19.25A2.75 2.75 0 0 1 20.25 22H3.75A2.75 2.75 0 0 1 1 19.25V7.657A2.75 2.75 0 0 1 3.62 4.91l2.923-.14 1.015-1.858A1.75 1.75 0 0 1 9.094 2zM9.094 3.5a.25.25 0 0 0-.22.13L7.658 5.86a.75.75 0 0 1-.622.389l-3.346.16A1.25 1.25 0 0 0 2.5 7.656V19.25c0 .69.56 1.25 1.25 1.25h16.5c.69 0 1.25-.56 1.25-1.25V7.657a1.25 1.25 0 0 0-1.19-1.249l-3.346-.159a.75.75 0 0 1-.622-.39l-1.216-2.23a.25.25 0 0 0-.22-.129zM12 8a5 5 0 1 1 0 10 5 5 0 0 1 0-10m0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M5.01 8a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2z"
                />
            </svg>
        );
    }
);
