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

export const IconVerified24 = 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={24}
                height={24}
                fill="none"
                viewBox="0 0 24 24"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    fillRule="evenodd"
                    d="M9.82 1.635a3.75 3.75 0 0 1 4.36 0l1.193.852c.278.199.597.331.934.388l1.492.252A3.75 3.75 0 0 1 20.873 6.2l.251 1.492c.057.336.19.655.388.933l.853 1.194a3.75 3.75 0 0 1 0 4.36l-.853 1.193c-.198.277-.331.597-.388.934l-.251 1.492a3.75 3.75 0 0 1-3.074 3.073l-1.492.252a2.25 2.25 0 0 0-.934.388l-1.193.852a3.75 3.75 0 0 1-4.36 0l-1.193-.852a2.25 2.25 0 0 0-.934-.388l-1.492-.252a3.75 3.75 0 0 1-3.074-3.073l-.252-1.492a2.25 2.25 0 0 0-.388-.934l-.852-1.193a3.75 3.75 0 0 1 0-4.36l.852-1.194a2.25 2.25 0 0 0 .388-.933l.252-1.492A3.75 3.75 0 0 1 6.2 3.127l1.492-.252c.337-.057.656-.19.934-.388zm3.488 1.22a2.25 2.25 0 0 0-2.616 0L9.5 3.708c-.463.33-.996.552-1.557.646l-1.492.252A2.25 2.25 0 0 0 4.606 6.45l-.252 1.492a3.75 3.75 0 0 1-.646 1.556l-.853 1.193a2.25 2.25 0 0 0 0 2.617l.853 1.193c.33.463.552.995.646 1.556l.252 1.492c.16.944.9 1.685 1.844 1.845l1.492.251c.561.095 1.094.316 1.557.646l1.193.852a2.25 2.25 0 0 0 2.616 0l1.193-.852c.463-.33.995-.55 1.556-.646l1.492-.252c.945-.159 1.685-.9 1.845-1.844l.252-1.492c.094-.561.316-1.093.646-1.556l.852-1.193a2.25 2.25 0 0 0 0-2.617l-.852-1.193a3.75 3.75 0 0 1-.647-1.556l-.251-1.492a2.25 2.25 0 0 0-1.845-1.844l-1.492-.252a3.75 3.75 0 0 1-1.556-.646zM15.72 8.22a.75.75 0 0 1 1.06 1.06l-6.5 6.5a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 1.06-1.06l2.47 2.47z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
