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

export const IconCamera16 = 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="M9.823 1c.476 0 .91.27 1.121.695l.54 1.094 1.457.124A2.25 2.25 0 0 1 15 5.154v6.596A2.25 2.25 0 0 1 12.75 14h-9.5A2.25 2.25 0 0 1 1 11.75V5.154a2.25 2.25 0 0 1 2.059-2.24l1.457-.125.54-1.094C5.266 1.27 5.7 1 6.176 1zM5.672 3.833a.75.75 0 0 1-.609.414l-1.876.16a.75.75 0 0 0-.687.747v6.596c0 .414.336.75.75.75h9.5a.75.75 0 0 0 .75-.75V5.154a.75.75 0 0 0-.687-.747l-1.876-.16a.75.75 0 0 1-.609-.414L9.668 2.5H6.332zM8 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6m0 1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M4.01 5a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"
                />
            </svg>
        );
    }
);
