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

export const IconUnfoldClose16 = 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}
                    fillRule="evenodd"
                    d="M8 10a.75.75 0 0 1 .549.24l3.25 3.5a.75.75 0 0 1-1.099 1.02L8 11.852 5.299 14.76A.75.75 0 1 1 4.2 13.74l3.25-3.5A.75.75 0 0 1 8 10M2.25 7.123a.627.627 0 0 1 0 1.253h-.5a.627.627 0 1 1 0-1.253zm3 0a.627.627 0 0 1 0 1.253h-.5a.627.627 0 1 1 0-1.253zm3 0a.627.627 0 0 1 0 1.253h-.5a.627.627 0 1 1 0-1.253zm3 0a.627.627 0 0 1 0 1.253h-.5a.627.627 0 1 1 0-1.253zm3 0a.627.627 0 0 1 0 1.253h-.5a.627.627 0 1 1 0-1.253zM10.7 1.239A.75.75 0 0 1 11.8 2.26l-3.25 3.5a.75.75 0 0 1-1.099 0L4.2 2.26A.75.75 0 0 1 5.3 1.24L8 4.147z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
