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

export const IconStarCircle16 = 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}
                <g fill={color} fillRule="evenodd" clipRule="evenodd">
                    <path d="M8.679 2.431a.75.75 0 0 0-1.358 0L6.023 5.196l-2.887.444a.75.75 0 0 0-.423 1.265l2.11 2.162-.499 3.062a.75.75 0 0 0 1.103.777L8 11.484l2.572 1.422a.75.75 0 0 0 1.104-.777l-.5-3.062 2.11-2.162a.75.75 0 0 0-.422-1.265l-2.887-.444zM7.21 6.195 8 4.515l.789 1.68a.75.75 0 0 0 .565.423l1.84.283L9.838 8.29a.75.75 0 0 0-.203.644l.311 1.912-1.583-.876a.75.75 0 0 0-.726 0l-1.584.876.312-1.912a.75.75 0 0 0-.204-.644L4.805 6.9l1.841-.282a.75.75 0 0 0 .565-.423" />
                    <path d="M8 .05a7.95 7.95 0 1 0 0 15.9A7.95 7.95 0 0 0 8 .05M1.45 8a6.55 6.55 0 1 1 13.1 0 6.55 6.55 0 0 1-13.1 0" />
                </g>
            </svg>
        );
    }
);
