import React from 'react';

const cogIcon = (fill: string, size: number, style?: React.CSSProperties) => (
    <svg
        aria-hidden="true"
        data-testid="test-icon"
        fill="none"
        height={size}
        viewBox="0 0 24 24"
        width={size}
        xmlns="http://www.w3.org/2000/svg"
        style={style}
    >
        <title>cog icon</title>
        <path
            fillRule="evenodd"
            clipRule="evenodd"
            d="M12 3.66667C11.779 3.66667 11.567 3.75446 11.4107 3.91074C11.2545 4.06702 11.1667 4.27899 11.1667 4.5V4.64499C11.1649 5.07566 11.0373 5.49644 10.7995 5.85551C10.5617 6.21459 10.2241 6.49629 9.82828 6.66595C9.75781 6.69615 9.68368 6.71641 9.60801 6.7263C9.24831 6.85226 8.8611 6.88331 8.48417 6.81497C8.05 6.73625 7.64937 6.52927 7.33395 6.22072L7.32737 6.21429L7.27741 6.16426C7.20002 6.08677 7.10778 6.02498 7.00662 5.98304C6.90545 5.94111 6.79701 5.91952 6.6875 5.91952C6.57799 5.91952 6.46955 5.94111 6.36838 5.98304C6.26722 6.02498 6.17531 6.08645 6.09792 6.16393L6.09726 6.16458C6.01978 6.24198 5.95831 6.33388 5.91638 6.43505C5.87444 6.53621 5.85286 6.64465 5.85286 6.75417C5.85286 6.86368 5.87444 6.97212 5.91638 7.07328C5.95831 7.17445 6.01978 7.26636 6.09726 7.34375L6.15409 7.40058C6.46264 7.71601 6.66958 8.11667 6.7483 8.55083C6.82546 8.97636 6.77594 9.41497 6.60621 9.81231C6.45157 10.2178 6.18081 10.5689 5.82754 10.8216C5.46712 11.0793 5.03748 11.2227 4.59449 11.2331L4.575 11.2333H4.5C4.27899 11.2333 4.06702 11.3211 3.91074 11.4774C3.75446 11.6337 3.66667 11.8457 3.66667 12.0667C3.66667 12.2877 3.75446 12.4996 3.91074 12.6559C4.06702 12.8122 4.27899 12.9 4.5 12.9H4.64499C5.07566 12.9017 5.49644 13.0293 5.85551 13.2671C6.21334 13.5041 6.49433 13.8402 6.66418 14.2343C6.8409 14.6369 6.89342 15.0831 6.81497 15.5158C6.73625 15.95 6.52927 16.3506 6.22072 16.6661L6.21429 16.6726L6.16425 16.7226C6.08677 16.8 6.02498 16.8922 5.98304 16.9934C5.94111 17.0945 5.91952 17.203 5.91952 17.3125C5.91952 17.422 5.94111 17.5305 5.98304 17.6316C6.02498 17.7328 6.08645 17.8247 6.16393 17.9021L6.16458 17.9027C6.24198 17.9802 6.33388 18.0417 6.43505 18.0836C6.53622 18.1256 6.64465 18.1471 6.75417 18.1471C6.86368 18.1471 6.97212 18.1256 7.07328 18.0836C7.17445 18.0417 7.26636 17.9802 7.34375 17.9027L7.40058 17.8459C7.71601 17.5374 8.11667 17.3304 8.55083 17.2517C8.97635 17.1745 9.41497 17.2241 9.81231 17.3938C10.2178 17.5484 10.5689 17.8192 10.8216 18.1725C11.0793 18.5329 11.2227 18.9625 11.2331 19.4055L11.2333 19.425V19.5C11.2333 19.721 11.3211 19.933 11.4774 20.0893C11.6337 20.2455 11.8457 20.3333 12.0667 20.3333C12.2877 20.3333 12.4996 20.2455 12.6559 20.0893C12.8122 19.933 12.9 19.721 12.9 19.5V19.3583L12.9 19.355C12.9017 18.9243 13.0293 18.5036 13.2671 18.1445C13.5041 17.7866 13.8402 17.5056 14.2344 17.3358C14.637 17.1591 15.0832 17.1066 15.5158 17.185C15.95 17.2638 16.3506 17.4707 16.6661 17.7793L16.6726 17.7857L16.7226 17.8357C16.8 17.9132 16.8922 17.975 16.9934 18.017C17.0945 18.0589 17.203 18.0805 17.3125 18.0805C17.422 18.0805 17.5305 18.0589 17.6316 18.017C17.7328 17.975 17.8247 17.9136 17.9021 17.8361L17.9027 17.8354C17.9802 17.758 18.0417 17.6661 18.0836 17.5649C18.1256 17.4638 18.1471 17.3553 18.1471 17.2458C18.1471 17.1363 18.1256 17.0279 18.0836 16.9267C18.0417 16.8255 17.9802 16.7336 17.9027 16.6562L17.8459 16.5994C17.5374 16.284 17.3304 15.8833 17.2517 15.4492C17.1732 15.0165 17.2258 14.5703 17.4024 14.1677C17.5723 13.7736 17.8533 13.4375 18.2112 13.2005C18.5702 12.9627 18.991 12.8351 19.4217 12.8333L19.425 12.8333L19.5 12.8333C19.721 12.8333 19.933 12.7455 20.0893 12.5893C20.2455 12.433 20.3333 12.221 20.3333 12C20.3333 11.779 20.2455 11.567 20.0893 11.4107C19.933 11.2545 19.721 11.1667 19.5 11.1667H19.3583L19.355 11.1667C18.9243 11.1649 18.5036 11.0373 18.1445 10.7995C17.7854 10.5617 17.5037 10.2241 17.334 9.82828C17.3039 9.75781 17.2836 9.68368 17.2737 9.60801C17.1477 9.24831 17.1167 8.8611 17.185 8.48417C17.2638 8.05 17.4707 7.64938 17.7793 7.33395L17.7857 7.32738L17.8357 7.27741C17.9132 7.20002 17.975 7.10778 18.017 7.00662C18.0589 6.90545 18.0805 6.79701 18.0805 6.6875C18.0805 6.57799 18.0589 6.46955 18.017 6.36838C17.975 6.26722 17.9136 6.17531 17.8361 6.09792L17.8354 6.09726C17.758 6.01978 17.6661 5.95831 17.5649 5.91638C17.4638 5.87444 17.3553 5.85286 17.2458 5.85286C17.1363 5.85286 17.0279 5.87444 16.9267 5.91638C16.8256 5.95832 16.7336 6.01978 16.6562 6.09726L16.5994 6.15409C16.284 6.46264 15.8833 6.66958 15.4492 6.7483C15.0165 6.82676 14.5702 6.77423 14.1676 6.59751C13.7735 6.42767 13.4374 6.14667 13.2005 5.78885C12.9627 5.42977 12.8351 5.009 12.8333 4.57832L12.8333 4.575V4.5C12.8333 4.27899 12.7455 4.06702 12.5893 3.91074C12.433 3.75446 12.221 3.66667 12 3.66667ZM10.2322 2.73223C10.7011 2.26339 11.337 2 12 2C12.663 2 13.2989 2.26339 13.7678 2.73223C14.2366 3.20107 14.5 3.83696 14.5 4.5V4.57292C14.5007 4.67812 14.5319 4.78087 14.59 4.8686C14.6484 4.95667 14.7312 5.02577 14.8283 5.06738L14.8365 5.0709C14.9355 5.1146 15.0453 5.12768 15.1518 5.10837C15.2571 5.08928 15.3544 5.0394 15.4314 4.96509L15.4771 4.91941C15.7093 4.68696 15.985 4.50257 16.2885 4.37676C16.592 4.25095 16.9173 4.18619 17.2458 4.18619C17.5744 4.18619 17.8997 4.25095 18.2032 4.37676C18.5067 4.50257 18.7824 4.68697 19.0146 4.91941C19.2467 5.15145 19.4309 5.42694 19.5566 5.73015C19.6824 6.03364 19.7471 6.35896 19.7471 6.6875C19.7471 7.01604 19.6824 7.34136 19.5566 7.64485C19.4308 7.9482 19.2465 8.22381 19.0143 8.45592C19.0141 8.45603 19.0144 8.45581 19.0143 8.45592L18.9683 8.50192C18.8939 8.5789 18.8441 8.67618 18.825 8.78152C18.8057 8.88801 18.8187 8.99785 18.8624 9.09686C18.8859 9.15023 18.9038 9.20577 18.9156 9.26256C18.9551 9.32066 19.0056 9.37082 19.0647 9.40996C19.1525 9.46806 19.2552 9.49934 19.3604 9.5H19.5C20.163 9.5 20.7989 9.76339 21.2678 10.2322C21.7366 10.7011 22 11.337 22 12C22 12.663 21.7366 13.2989 21.2678 13.7678C20.7989 14.2366 20.163 14.5 19.5 14.5H19.4271C19.3219 14.5007 19.2191 14.5319 19.1314 14.59C19.0433 14.6484 18.9742 14.7312 18.9326 14.8283L18.9291 14.8365C18.8854 14.9355 18.8723 15.0453 18.8916 15.1518C18.9107 15.2571 18.9606 15.3544 19.0349 15.4314L19.0806 15.4771C19.0807 15.4772 19.0805 15.477 19.0806 15.4771C19.3129 15.7092 19.4975 15.9851 19.6232 16.2885C19.7491 16.592 19.8138 16.9173 19.8138 17.2458C19.8138 17.5744 19.7491 17.8997 19.6232 18.2032C19.4974 18.5067 19.313 18.7824 19.0806 19.0146L18.4917 18.425L19.0813 19.0139C18.8491 19.2464 18.5733 19.4308 18.2698 19.5566C17.9664 19.6824 17.641 19.7471 17.3125 19.7471C16.984 19.7471 16.6586 19.6824 16.3551 19.5566C16.0518 19.4308 15.7762 19.2465 15.5441 19.0143C15.544 19.0141 15.5442 19.0144 15.5441 19.0143L15.4981 18.9682C15.4211 18.8939 15.3238 18.8441 15.2185 18.825C15.112 18.8057 15.0022 18.8187 14.9031 18.8624L14.895 18.866C14.7979 18.9076 14.715 18.9767 14.6567 19.0647C14.5986 19.1525 14.5673 19.2552 14.5667 19.3604V19.5C14.5667 20.163 14.3033 20.7989 13.8344 21.2678C13.3656 21.7366 12.7297 22 12.0667 22C11.4036 22 10.7677 21.7366 10.2989 21.2678C9.83006 20.7989 9.56667 20.163 9.56667 19.5V19.437C9.56271 19.331 9.52772 19.2284 9.46595 19.142C9.40272 19.0536 9.31436 18.9863 9.21235 18.9488C9.19587 18.9427 9.17959 18.9361 9.16353 18.9291C9.06451 18.8854 8.95468 18.8723 8.84818 18.8916C8.74285 18.9107 8.64556 18.9606 8.56858 19.0349L8.52292 19.0806C8.52281 19.0807 8.52302 19.0805 8.52292 19.0806C8.2908 19.3129 8.01487 19.4975 7.71152 19.6232C7.40802 19.7491 7.08271 19.8138 6.75417 19.8138C6.42563 19.8138 6.10031 19.7491 5.79682 19.6232C5.49361 19.4976 5.21812 19.3134 4.98607 19.0813C4.75363 18.8491 4.56923 18.5733 4.44342 18.2698C4.31761 17.9664 4.25286 17.641 4.25286 17.3125C4.25286 16.984 4.31761 16.6586 4.44342 16.3551C4.56923 16.0517 4.75363 15.7759 4.98607 15.5437L5.03176 15.4981C5.10607 15.4211 5.15594 15.3238 5.17504 15.2185C5.19435 15.112 5.18131 15.0022 5.13761 14.9031L5.13401 14.895C5.09239 14.7979 5.02334 14.715 4.93526 14.6567C4.84753 14.5986 4.74479 14.5673 4.63958 14.5667H4.5C3.83696 14.5667 3.20107 14.3033 2.73223 13.8344C2.26339 13.3656 2 12.7297 2 12.0667C2 11.4036 2.26339 10.7677 2.73223 10.2989C3.20107 9.83006 3.83696 9.56667 4.5 9.56667H4.56303C4.66903 9.56271 4.7716 9.52772 4.85796 9.46595C4.94636 9.40272 5.0137 9.31436 5.05122 9.21235C5.05728 9.19587 5.06386 9.17959 5.07095 9.16353C5.11465 9.06451 5.12768 8.95468 5.10837 8.84818C5.08927 8.74285 5.0394 8.64557 4.96508 8.56859L4.91941 8.52292C4.68696 8.29073 4.50257 8.01501 4.37676 7.71152C4.25095 7.40802 4.18619 7.08271 4.18619 6.75417C4.18619 6.42563 4.25095 6.10031 4.37676 5.79682C4.50251 5.49346 4.68679 5.21786 4.91908 4.98574C5.15119 4.75346 5.4268 4.56917 5.73015 4.44342C6.03364 4.31761 6.35896 4.25286 6.6875 4.25286C7.01604 4.25286 7.34136 4.31761 7.64485 4.44342C7.94835 4.56923 8.22407 4.75363 8.45625 4.98607L8.50192 5.03175C8.5789 5.10607 8.67619 5.15594 8.78152 5.17504C8.88801 5.19435 8.99785 5.18131 9.09686 5.13761C9.15023 5.11406 9.20577 5.09624 9.26256 5.08435C9.32066 5.04491 9.37082 4.99436 9.40996 4.93526C9.46806 4.84753 9.49934 4.74479 9.5 4.63958V4.5C9.5 3.83696 9.76339 3.20107 10.2322 2.73223ZM12 10.3333C11.0795 10.3333 10.3333 11.0795 10.3333 12C10.3333 12.9205 11.0795 13.6667 12 13.6667C12.9205 13.6667 13.6667 12.9205 13.6667 12C13.6667 11.0795 12.9205 10.3333 12 10.3333ZM8.66667 12C8.66667 10.1591 10.1591 8.66667 12 8.66667C13.8409 8.66667 15.3333 10.1591 15.3333 12C15.3333 13.8409 13.8409 15.3333 12 15.3333C10.1591 15.3333 8.66667 13.8409 8.66667 12Z"
            fill={fill}
        />
    </svg>
);
export default cogIcon;
