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

export const IconPaperclip16 = 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.32 1.048c1.363-1.38 3.636-1.38 4.998 0 1.36 1.378 1.36 3.658 0 5.036l-6.39 6.465a2.143 2.143 0 0 1-3.032 0 2.184 2.184 0 0 1 0-3.044l5.897-5.967a.75.75 0 0 1 1.066 1.055l-5.895 5.966a.684.684 0 0 0 0 .936.64.64 0 0 0 .897 0c.045-.045 5.643-5.718 6.39-6.465.749-.749.776-2.143 0-2.928a2.035 2.035 0 0 0-2.863 0L3.005 8.567A3.5 3.5 0 0 0 2 11.027c0 .924.363 1.809 1.005 2.46A3.4 3.4 0 0 0 5.419 14.5c.904 0 1.773-.363 2.415-1.014l6.382-6.465a.751.751 0 0 1 1.068 1.054L8.901 14.54A4.9 4.9 0 0 1 5.42 16a4.9 4.9 0 0 1-3.481-1.46A5 5 0 0 1 .5 11.026c0-1.315.516-2.58 1.438-3.512z"
                />
            </svg>
        );
    }
);
