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

export const IconToken24 = 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}
                    d="M10 1a9 9 0 0 1 8.043 4.957A9 9 0 1 1 5.957 18.043 9 9 0 0 1 10 1m8.833 7.265q.166.843.167 1.735a9 9 0 0 1-10.735 8.833A7.5 7.5 0 1 0 18.833 8.265M10 2.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15M8.763 5.228a1.75 1.75 0 0 1 2.474 0l3.536 3.535a1.75 1.75 0 0 1 0 2.475l-3.536 3.535a1.75 1.75 0 0 1-2.474 0l-3.536-3.535a1.75 1.75 0 0 1 0-2.475zm1.414 1.06a.25.25 0 0 0-.354 0L6.287 9.823a.25.25 0 0 0 0 .355l3.536 3.535a.25.25 0 0 0 .354 0l3.535-3.535a.25.25 0 0 0 0-.355z"
                />
            </svg>
        );
    }
);
