import React from 'react';
import { Path, Rect } from 'react-native-svg';
import type { IllustrationSvgProps } from '../types';
import BaseSvg from '../BaseSvg';

const Star = ({
  stroke,
  fill,
  testID,
  width,
  height,
}: IllustrationSvgProps) => {
  return (
    <BaseSvg width={width} height={height} testID={testID}>
      <Rect
        x="0.199951"
        y="12.2122"
        width="60.6316"
        height="60.6316"
        rx="20"
        fill={fill}
        stroke="transparent"
      />
      <Rect
        x="13.5684"
        y="2.84375"
        width="56.6316"
        height="56.6316"
        rx="18"
        stroke={stroke}
        fill="transparent"
        strokeWidth="4"
      />
      <Path
        d="M47.3478 43.1168L47.3612 43.1205L47.3748 43.1225C47.5985 43.1559 47.7728 43.1811 47.8971 43.198C48.0112 43.2134 48.1035 43.225 48.1452 43.225C48.9231 43.225 49.6046 42.9321 50.1801 42.3595C50.7616 41.781 51.0409 41.0649 51.017 40.2273C51.017 40.2271 51.0169 40.227 51.0169 40.2269L50.8848 34.8358L54.5252 29.6994C54.5255 29.699 54.5258 29.6986 54.5262 29.6981C54.7183 29.4349 54.8588 29.1566 54.9448 28.8633C55.0287 28.5769 55.0711 28.289 55.0711 28C55.0711 27.3755 54.8891 26.8027 54.5278 26.2875C54.1632 25.7676 53.6637 25.411 53.0384 25.219L47.4099 23.3415L43.7012 18.5646C43.7008 18.5641 43.7005 18.5637 43.7002 18.5633C43.412 18.1813 43.0652 17.8952 42.6593 17.7117C42.2618 17.5319 41.8449 17.4417 41.4107 17.4417C40.9765 17.4417 40.5596 17.5319 40.1621 17.7117C39.7563 17.8952 39.4094 18.1813 39.1212 18.5633L35.4115 23.3415L29.7804 25.2199L29.7804 25.2199L29.7783 25.2206C29.1547 25.4354 28.6614 25.803 28.3084 26.3237C27.9603 26.8372 27.7838 27.3976 27.7838 28C27.7838 28.289 27.8262 28.5769 27.9101 28.8633C27.9961 29.1565 28.1365 29.4349 28.3287 29.698C28.329 29.6985 28.3294 29.699 28.3297 29.6994L31.9366 34.8023L31.8045 40.2269C31.8045 40.227 31.8044 40.2272 31.8044 40.2274C31.7805 41.065 32.0599 41.7811 32.6413 42.3595C33.2168 42.9321 33.8983 43.225 34.6762 43.225C34.7952 43.225 34.9244 43.2191 35.0634 43.2076L35.0448 42.9833L35.0634 43.2076C35.2125 43.1952 35.3534 43.1645 35.4847 43.1137L41.4107 41.4669L47.3478 43.1168ZM37.2593 26.0471L37.3253 26.0254L37.3676 25.9703L41.4107 20.7029L45.4538 25.9703L45.4954 26.0245L45.5602 26.0465L51.7749 28.1499L47.7937 33.8038L47.7511 33.8642L47.7527 33.938L47.8804 40.0353L41.4711 38.2499L41.4112 38.2332L41.3513 38.2496L34.941 40.0035L35.0687 33.9381L35.0703 33.8649L35.0284 33.8048L31.0466 28.0862L37.2593 26.0471Z"
        fill={stroke}
        stroke={stroke}
        strokeWidth="0.45"
      />
    </BaseSvg>
  );
};

export default Star;
