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

const Location = ({
  stroke,
  fill,
  testID,
  width,
  height,
}: IllustrationSvgProps) => {
  return (
    <BaseSvg width={width} height={height} testID={testID}>
      <Rect
        x="0.615723"
        y="12.2122"
        width="60.6316"
        height="60.6316"
        rx="20"
        fill={fill}
        stroke="transparent"
      />
      <Rect
        x="13.9841"
        y="2.84375"
        width="56.6316"
        height="56.6316"
        rx="18"
        stroke={stroke}
        fill="transparent"
        strokeWidth="4"
      />
      <Path
        d="M42.4699 46.0151L42.6157 46.1392L42.7615 46.0151C46.7952 42.5827 49.8178 39.3865 51.8208 36.4261C53.8234 33.4663 54.8407 30.7039 54.8407 28.1437C54.8407 24.3408 53.615 21.2897 51.1495 19.0159C48.697 16.754 45.8493 15.6188 42.6157 15.6188C39.3821 15.6188 36.5344 16.754 34.0819 19.0159C31.6165 21.2897 30.3907 24.3408 30.3907 28.1437C30.3907 30.7039 31.4081 33.4663 33.4106 36.4261C35.4136 39.3865 38.4362 42.5827 42.4699 46.0151ZM42.6157 31.0688C43.5009 31.0688 44.2642 30.751 44.8936 30.1216C45.5229 29.4922 45.8407 28.7289 45.8407 27.8438C45.8407 26.9586 45.5229 26.1953 44.8936 25.5659C44.2642 24.9365 43.5009 24.6187 42.6157 24.6187C41.7306 24.6187 40.9672 24.9365 40.3379 25.5659C39.7085 26.1953 39.3907 26.9586 39.3907 27.8438C39.3907 28.7289 39.7085 29.4922 40.3379 30.1216C40.9672 30.751 41.7306 31.0688 42.6157 31.0688ZM49.2141 34.1156C47.7779 36.343 45.581 38.8254 42.6157 41.5629C39.6504 38.8254 37.4536 36.343 36.0173 34.1156C34.5542 31.8464 33.8407 29.8582 33.8407 28.1437C33.8407 25.4713 34.6906 23.2996 36.3811 21.6091C38.0751 19.9151 40.1486 19.0687 42.6157 19.0687C45.0829 19.0687 47.1564 19.9151 48.8504 21.6091C50.5409 23.2996 51.3907 25.4713 51.3907 28.1437C51.3907 29.8582 50.6773 31.8464 49.2141 34.1156Z"
        fill={stroke}
        stroke={stroke}
        strokeWidth="0.45"
      />
    </BaseSvg>
  );
};

export default Location;
