/* eslint-disable @typescript-eslint/ban-ts-comment */
// @ts-nocheck
import { useIcon } from 'hooks';
import React from 'react';
import Svg, { Path, G, Defs, ClipPath, Rect } from 'react-native-svg';
import { IconProps } from './types';

export const Refresh: React.FC<IconProps> = ({ colorVariant = 'white', ...props }) => {
  const { getIconColor } = useIcon();
  return (
    <Svg width="18" height="18" viewBox="0 0 26 26" fill="none" {...props}>
      <G clipPath="url(#clip0_3618_229422)">
        <Path d="M9.09374 20.0312H4.40625V24.7188L9.09374 20.0312Z" fill="white" />
        <Path
          d="M4.40625 25.5C4.30521 25.5 4.20417 25.4802 4.10729 25.4406C3.81562 25.3198 3.625 25.0344 3.625 24.7188V20.0312C3.625 19.6 3.975 19.25 4.40625 19.25H9.09374C9.40937 19.25 9.69479 19.4406 9.81562 19.7323C9.93645 20.024 9.86978 20.3604 9.64583 20.5833L4.95833 25.2708C4.80937 25.4208 4.60937 25.5 4.40625 25.5ZM5.1875 20.8125V22.8323L7.20729 20.8125H5.1875Z"
          fill={getIconColor(colorVariant)}
        />
        <Path
          d="M12.7398 25.4994C9.84815 25.4994 7.01481 24.5025 4.76481 22.6931C4.31585 22.3317 4.24502 21.6764 4.60544 21.2285C4.96689 20.7806 5.62314 20.7098 6.07002 21.0692C7.9794 22.6046 10.2856 23.416 12.7398 23.416C18.6273 23.416 23.4169 18.6264 23.4169 12.7389C23.4169 12.1639 23.8836 11.6973 24.4586 11.6973C25.0336 11.6973 25.5002 12.1639 25.5002 12.7389C25.5002 19.7754 19.7763 25.4994 12.7398 25.4994Z"
          fill={getIconColor(colorVariant)}
        />
        <Path d="M22.6353 1.28125V5.96875H17.9478L22.6353 1.28125Z" fill="white" />
        <Path
          d="M22.6353 6.75008H17.9478C17.6322 6.75008 17.3468 6.55946 17.226 6.26779C17.1051 5.97613 17.1718 5.63967 17.3958 5.41675L22.0832 0.729247C22.3072 0.505288 22.6437 0.438622 22.9343 0.559455C23.2259 0.680288 23.4166 0.965705 23.4166 1.28133V5.96883C23.4166 6.40008 23.0666 6.75008 22.6353 6.75008ZM19.8343 5.18758H21.8541V3.16779L19.8343 5.18758Z"
          fill={getIconColor(colorVariant)}
        />
        <Path
          d="M1.54167 14.3021C0.966667 14.3021 0.5 13.8354 0.5 13.2604C0.5 6.22396 6.22396 0.5 13.2604 0.5C16.2625 0.5 19.1792 1.56563 21.4719 3.50104C21.9115 3.87188 21.9677 4.52917 21.5958 4.96875C21.224 5.40833 20.5667 5.46458 20.1281 5.09271C18.2104 3.47396 15.7719 2.58333 13.2604 2.58333C7.37292 2.58333 2.58333 7.37292 2.58333 13.2604C2.58333 13.8354 2.11667 14.3021 1.54167 14.3021Z"
          fill={getIconColor(colorVariant)}
        />
      </G>
      <Defs>
        <ClipPath id="clip0_3618_229422">
          <Rect width="25" height="25" fill="white" transform="translate(0.5 0.5)" />
        </ClipPath>
      </Defs>
    </Svg>
  );
};
