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

export const IconJwtColor16 = 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 fillRule="evenodd" clipRule="evenodd">
                    <path
                        fill="#fff"
                        d="M9.09 4.65V.75H6.91v3.9L8 6.145zM6.91 11.35v3.9h2.18v-3.9L8 9.856z"
                    />
                    <path
                        fill="#00f2e6"
                        d="m9.09 11.35 2.295 3.16 1.773-1.29-2.31-3.147-1.758-.58zM6.91 4.65 4.615 1.49 2.842 2.78l2.31 3.147 1.758.58z"
                    />
                    <path
                        fill="#00b9f1"
                        d="m5.152 5.927-3.72-1.204L.75 6.796 4.47 8l1.772-.566zM9.758 8.566l1.09 1.507 3.72 1.204.682-2.073L11.53 8z"
                    />
                    <path
                        fill="#d63aff"
                        d="m11.53 8 3.72-1.204-.683-2.073-3.72 1.203-1.089 1.508zM4.47 8 .75 9.204l.683 2.073 3.72-1.203 1.089-1.508z"
                    />
                    <path
                        fill="#fb015b"
                        d="m5.152 10.074-2.31 3.146 1.773 1.29 2.295-3.16V9.493zM10.848 5.926l2.31-3.146-1.773-1.29L9.09 4.65v1.857z"
                    />
                </g>
            </svg>
        );
    }
);
