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

export const IconVerified16 = 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="M6.402 1.22a2.75 2.75 0 0 1 3.197 0l.69.494c.154.11.331.183.518.214l.865.147a2.75 2.75 0 0 1 2.254 2.254l.147.865c.031.187.104.364.215.519l.493.689a2.75 2.75 0 0 1 0 3.197l-.493.69a1.25 1.25 0 0 0-.215.518l-.147.865a2.75 2.75 0 0 1-2.254 2.254l-.865.147a1.25 1.25 0 0 0-.518.215l-.69.493a2.75 2.75 0 0 1-3.197 0l-.69-.493a1.25 1.25 0 0 0-.518-.215l-.865-.147a2.75 2.75 0 0 1-2.254-2.254l-.147-.865a1.25 1.25 0 0 0-.215-.518l-.493-.69a2.75 2.75 0 0 1 0-3.197l.493-.69c.11-.154.184-.331.215-.518l.147-.865a2.75 2.75 0 0 1 2.254-2.254l.865-.147c.187-.031.364-.104.518-.214zm2.325 1.221a1.25 1.25 0 0 0-1.453 0l-.69.493c-.339.243-.73.404-1.141.474l-.864.145c-.525.089-.937.5-1.026 1.026l-.145.865c-.07.411-.232.801-.474 1.14l-.493.69a1.25 1.25 0 0 0 0 1.453l.493.69c.242.339.404.73.474 1.14l.145.865c.089.525.5.937 1.026 1.026l.864.145c.411.07.802.232 1.141.474l.69.493c.434.31 1.019.31 1.453 0l.69-.493a2.75 2.75 0 0 1 1.14-.474l.865-.145c.525-.089.936-.5 1.025-1.026l.146-.865c.07-.41.232-.801.474-1.14l.493-.69c.31-.434.31-1.018 0-1.453l-.493-.69a2.75 2.75 0 0 1-.474-1.14l-.146-.865a1.25 1.25 0 0 0-1.025-1.026l-.865-.145a2.75 2.75 0 0 1-1.14-.474zm1.493 3.28a.75.75 0 0 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-1.5-1.5a.75.75 0 0 1 1.06-1.06l.97.97z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
