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

export const IconCollections16 = 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.75 1c.883 0 1.648.51 2.017 1.25h.983a1.75 1.75 0 0 1 1.582 1h.918c.966 0 1.75.784 1.75 1.75v6a1.75 1.75 0 0 1-1.75 1.75h-.918c-.28.591-.884 1-1.582 1h-.983A2.25 2.25 0 0 1 8.75 15h-6.5A2.25 2.25 0 0 1 0 12.75v-9.5A2.25 2.25 0 0 1 2.25 1zm-6.5 1.5a.75.75 0 0 0-.75.75v9.5c0 .414.336.75.75.75h6.5a.75.75 0 0 0 .75-.75v-9.5a.75.75 0 0 0-.75-.75zM11 12.25h.75A.25.25 0 0 0 12 12V4a.25.25 0 0 0-.25-.25H11zm2.5-1h.75a.25.25 0 0 0 .25-.25V5a.25.25 0 0 0-.25-.25h-.75zm-7.25-4.2a.7.7 0 0 1 0 1.4h-2.5a.7.7 0 0 1 0-1.4zm1-3a.7.7 0 0 1 0 1.4h-3.5a.7.7 0 0 1 0-1.4z"
                />
            </svg>
        );
    }
);
