import React from 'react';
import { IconTheme } from '../../IconsCommonTypes';

function Settings(theme: IconTheme | undefined = undefined) {
  return (
    <svg
      width={theme && theme.width ? theme.width : '44'}
      height={theme && theme.height ? theme.height : '44'}
      viewBox="0 0 44 44"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
    >
      <path
        d="M35.6258 23.7967C35.6991 23.21 35.7541 22.6233 35.7541 22C35.7541 21.3767 35.6991 20.79 35.6258 20.2033L39.4941 17.1783C39.8424 16.9033 39.9341 16.4083 39.7141 16.005L36.0474 9.66166C35.8824 9.36832 35.5708 9.20332 35.2408 9.20332C35.1308 9.20332 35.0208 9.22166 34.9291 9.25832L30.3641 11.0917C29.4108 10.3583 28.3841 9.75332 27.2658 9.29499L26.5691 4.43666C26.5141 3.99666 26.1291 3.66666 25.6708 3.66666H18.3374C17.8791 3.66666 17.4941 3.99666 17.4391 4.43666L16.7424 9.29499C15.6241 9.75332 14.5974 10.3767 13.6441 11.0917L9.0791 9.25832C8.9691 9.22166 8.8591 9.20332 8.7491 9.20332C8.43743 9.20332 8.12577 9.36832 7.96077 9.66166L4.2941 16.005C4.05577 16.4083 4.16577 16.9033 4.5141 17.1783L8.38243 20.2033C8.3091 20.79 8.2541 21.395 8.2541 22C8.2541 22.605 8.3091 23.21 8.38243 23.7967L4.5141 26.8217C4.16577 27.0967 4.0741 27.5917 4.2941 27.995L7.96077 34.3383C8.12577 34.6317 8.43743 34.7967 8.76743 34.7967C8.87743 34.7967 8.98743 34.7783 9.0791 34.7417L13.6441 32.9083C14.5974 33.6417 15.6241 34.2467 16.7424 34.705L17.4391 39.5633C17.4941 40.0033 17.8791 40.3333 18.3374 40.3333H25.6708C26.1291 40.3333 26.5141 40.0033 26.5691 39.5633L27.2658 34.705C28.3841 34.2467 29.4108 33.6233 30.3641 32.9083L34.9291 34.7417C35.0391 34.7783 35.1491 34.7967 35.2591 34.7967C35.5708 34.7967 35.8824 34.6317 36.0474 34.3383L39.7141 27.995C39.9341 27.5917 39.8424 27.0967 39.4941 26.8217L35.6258 23.7967ZM31.9958 20.6617C32.0691 21.23 32.0874 21.615 32.0874 22C32.0874 22.385 32.0508 22.7883 31.9958 23.3383L31.7391 25.41L33.3708 26.6933L35.3508 28.2333L34.0674 30.4517L31.7391 29.5167L29.8324 28.7467L28.1824 29.9933C27.3941 30.58 26.6424 31.02 25.8908 31.3317L23.9474 32.12L23.6541 34.1917L23.2874 36.6667H20.7208L20.0791 32.12L18.1358 31.3317C17.3474 31.0017 16.6141 30.58 15.8808 30.03L14.2124 28.7467L12.2691 29.535L9.94077 30.47L8.65743 28.2517L10.6374 26.7117L12.2691 25.4283L12.0124 23.3567C11.9574 22.7883 11.9208 22.3667 11.9208 22C11.9208 21.6333 11.9574 21.2117 12.0124 20.6617L12.2691 18.59L10.6374 17.3067L8.65743 15.7667L9.94077 13.5483L12.2691 14.4833L14.1758 15.2533L15.8258 14.0067C16.6141 13.42 17.3658 12.98 18.1174 12.6683L20.0608 11.88L20.3541 9.80832L20.7208 7.33332H23.2691L23.9108 11.88L25.8541 12.6683C26.6424 12.9983 27.3758 13.42 28.1091 13.97L29.7774 15.2533L31.7208 14.465L34.0491 13.53L35.3324 15.7483L33.3708 17.3067L31.7391 18.59L31.9958 20.6617ZM22.0041 14.6667C17.9524 14.6667 14.6708 17.9483 14.6708 22C14.6708 26.0517 17.9524 29.3333 22.0041 29.3333C26.0558 29.3333 29.3374 26.0517 29.3374 22C29.3374 17.9483 26.0558 14.6667 22.0041 14.6667ZM22.0041 25.6667C19.9874 25.6667 18.3374 24.0167 18.3374 22C18.3374 19.9833 19.9874 18.3333 22.0041 18.3333C24.0208 18.3333 25.6708 19.9833 25.6708 22C25.6708 24.0167 24.0208 25.6667 22.0041 25.6667Z"
        id="Settings"
        fill={theme && theme.color ? theme.color : 'var(--color-icon)'}
      />
    </svg>
  );
}

export default Settings;
