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

export const IconAutoApply16 = 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 0c.96 0 1.738.772 1.75 1.729q.084.033.167.069a1.75 1.75 0 0 1 2.46.014l1.06 1.061a1.75 1.75 0 0 1 .015 2.46l.07.167A1.75 1.75 0 0 1 16 7.25v1.5a1.75 1.75 0 0 1-1.729 1.75l-.069.167a1.75 1.75 0 0 1-.014 2.46l-1.061 1.06a1.75 1.75 0 0 1-2.46.015l-.167.07A1.75 1.75 0 0 1 8.75 16h-1.5a1.75 1.75 0 0 1-1.75-1.729l-.167-.069a1.75 1.75 0 0 1-2.46-.014l-1.06-1.061a1.75 1.75 0 0 1-.015-2.46l-.07-.167A1.75 1.75 0 0 1 0 8.75v-1.5c0-.96.772-1.738 1.729-1.75q.033-.084.069-.167a1.75 1.75 0 0 1 .014-2.46l1.061-1.06a1.75 1.75 0 0 1 2.46-.015l.167-.07A1.75 1.75 0 0 1 7.25 0zm-1.5 1.5a.25.25 0 0 0-.25.25v.509a.75.75 0 0 1-.531.718q-.492.15-.938.388a.75.75 0 0 1-.883-.132l-.36-.36a.25.25 0 0 0-.353 0L2.873 3.935a.25.25 0 0 0 0 .353l.36.36a.75.75 0 0 1 .132.883 5.2 5.2 0 0 0-.388.938.75.75 0 0 1-.718.531H1.75a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h.509a.75.75 0 0 1 .718.531q.15.492.388.938a.75.75 0 0 1-.132.883l-.36.36a.25.25 0 0 0 0 .353l1.062 1.062a.25.25 0 0 0 .353 0l.36-.36a.75.75 0 0 1 .883-.132q.446.238.938.388a.75.75 0 0 1 .531.718v.509c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-.509a.75.75 0 0 1 .531-.718q.492-.15.938-.388a.75.75 0 0 1 .883.132l.36.36a.25.25 0 0 0 .353 0l1.062-1.062a.25.25 0 0 0 0-.353l-.36-.36a.75.75 0 0 1-.132-.883q.238-.446.388-.938A.75.75 0 0 1 13.741 9h.509a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25h-.509a.75.75 0 0 1-.718-.531q-.15-.492-.388-.938a.75.75 0 0 1 .132-.883l.36-.36a.25.25 0 0 0 0-.353l-1.062-1.062a.25.25 0 0 0-.353 0l-.36.36a.75.75 0 0 1-.883.132 5.2 5.2 0 0 0-.938-.388A.75.75 0 0 1 9 2.259V1.75a.25.25 0 0 0-.25-.25zM5 5.64c0-1.405 1.573-2.238 2.734-1.448l3.472 2.36a1.75 1.75 0 0 1 0 2.895l-3.472 2.36C6.573 12.598 5 11.766 5 10.36zm1.89-.207a.25.25 0 0 0-.39.207v4.72c0 .201.225.32.39.207l3.472-2.36a.25.25 0 0 0 0-.414z"
                />
            </svg>
        );
    }
);
