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

export const IconMinio16 = 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}
                <g fill={color}>
                    <path d="m9.548 2.586 1.57 2.57a.03.03 0 0 1 0 .036.03.03 0 0 1-.02.009.03.03 0 0 1-.02-.01L9.041 3.07zM8.892 8.84v.778l-.737.375v-.774z" />
                    <path d="M6.078 9.507a7 7 0 0 1 2.077-2.571v1.497zM4.88 10.895 8.155 9.23v3.81l.737.959V8.841l.448-.231a2.22 2.22 0 0 0 .61-3.515L8.266 3.333a.374.374 0 0 1 .547-.51l.237.247.499-.486c-.598-.776-1.332-.677-1.753-.29a1.075 1.075 0 0 0-.046 1.518l1.704 1.776A1.52 1.52 0 0 1 9.12 7.93l-.231.12V5.643a7.71 7.71 0 0 0-4.01 5.243z" />
                </g>
            </svg>
        );
    }
);
