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

export const IconFiles16 = 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.043 0c.331 0 .65.132.884.366l3.207 3.207q.115.115.195.253a.8.8 0 0 1 .201.144l2.104 2.103c.234.235.366.553.366.884v6.793A2.25 2.25 0 0 1 12.75 16h-7a2.25 2.25 0 0 1-2.25-2.25v-.25h-.25A2.25 2.25 0 0 1 1 11.25v-9A2.25 2.25 0 0 1 3.25 0zM12.5 11.25a2.25 2.25 0 0 1-2.25 2.25H5v.25c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75V7.06l-1-1zM3.25 1.5a.75.75 0 0 0-.75.75v9c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75V6H7.75A.75.75 0 0 1 7 5.25V1.5zm5.25 3h2.44L8.5 2.06z"
                />
            </svg>
        );
    }
);
