import React from 'react';
import Svg, { G, Path, Defs, LinearGradient, Stop, ClipPath, Rect } from 'react-native-svg';

const NMIcon = ({ isBlackAndWhite }: { isBlackAndWhite: boolean }) => {
  return (
    <Svg width="20" height="20" viewBox="0 0 20 20" fill="none">
      <G clipPath="url(#clip0_761_5431)">
        <Path
          d="M14.2687 18.3613C13.5203 18.8481 12.7372 18.844 11.9258 18.6427C11.121 18.443 10.4407 18.0703 9.99946 17.2929C9.40717 18.3173 8.44379 18.6232 7.39446 18.7593C6.81138 18.8333 6.22138 18.69 5.73821 18.3571C6.01513 17.8995 6.41596 17.5286 6.89483 17.2867C7.87696 16.7886 8.87292 16.7471 9.8805 17.2278C9.95479 17.2635 10.0809 17.2473 10.1602 17.2087C11.5196 16.5491 13.2243 16.9534 14.128 18.1575C14.1748 18.2177 14.2152 18.2816 14.2687 18.3613ZM1.39012 3.66816C0.420496 4.74732 0.860021 7.31821 2.07883 7.98892C3.07267 6.6263 2.63565 4.48915 1.39179 3.6665L1.39012 3.66816ZM17.9318 7.9848C19.1619 7.29163 19.5638 4.70581 18.6042 3.67065C17.1946 4.63567 17.0285 6.90188 17.9335 7.98105L17.9318 7.9848ZM2.95956 16.3823C3.79436 17.586 6.32675 17.774 7.31221 16.7587C6.18775 15.4123 4.02894 15.4015 2.95956 16.3823ZM12.6905 16.7616C13.638 17.7628 16.1745 17.6025 17.0427 16.3798C15.9328 15.3185 13.5975 15.5281 12.6905 16.7616ZM17.8166 10.7159C19.1597 10.5038 20.4253 8.19646 19.8493 6.85584C18.1413 7.37505 17.3332 9.44163 17.8166 10.7159ZM2.18318 10.7159C2.67238 9.4018 1.82213 7.3568 0.148348 6.85788C-0.423913 8.2143 0.850838 10.5108 2.18318 10.7155V10.7159ZM2.66069 11.768C2.66069 11.7066 2.61561 11.639 2.57721 11.5863C2.11515 10.9749 1.51827 10.5548 0.770283 10.3672C0.519842 10.3045 0.260628 10.2896 0.000586005 10.2518C-0.033641 11.5344 1.43813 13.1797 2.66612 13.2482C2.66487 12.7451 2.66779 12.2566 2.66069 11.7676V11.768ZM19.9232 10.2738C18.8588 10.3153 18.0286 10.7889 17.3954 11.6261C17.3645 11.663 17.3451 11.7082 17.3399 11.756C17.3361 12.2512 17.3374 12.7468 17.3374 13.2415C18.4944 13.2585 20.0714 11.5008 19.9975 10.2863C19.9732 10.2795 19.9483 10.2747 19.9232 10.2718V10.2738ZM4.98021 15.3375C4.86292 15.1383 4.75521 14.9312 4.6225 14.742C4.5935 14.7075 4.55783 14.6793 4.51758 14.659C4.47733 14.6386 4.43337 14.6266 4.38833 14.6237C3.92918 14.6125 3.47004 14.6191 3.0134 14.6178C2.73875 14.6178 2.66821 14.5473 2.66612 14.2754C2.66403 14.0035 2.66612 13.74 2.66612 13.4798C2.14771 13.332 1.44689 13.3752 0.978567 13.579C1.32125 14.9864 3.79185 16.0386 4.98021 15.3368V15.3375ZM17.0298 14.6183C16.5522 14.6183 16.094 14.6183 15.6356 14.6183C15.5651 14.6183 15.4603 14.6262 15.4295 14.6702C15.2788 14.8876 15.1477 15.1184 15.0087 15.3459C16.377 16.0535 18.7895 14.844 19.0112 13.5611C18.4685 13.3689 17.9184 13.342 17.3374 13.4677V14.3099C17.3376 14.3502 17.3298 14.3901 17.3145 14.4275C17.2991 14.4648 17.2765 14.4987 17.2479 14.5273C17.2193 14.5558 17.1853 14.5785 17.1479 14.594C17.1105 14.6095 17.0703 14.6174 17.0298 14.6174V14.6183ZM10.0007 18.7689C10.2036 19.3051 10.4573 19.7517 11.0267 19.9123C11.0434 19.8942 11.0574 19.8738 11.0684 19.8518C11.2596 19.1648 10.7763 18.2575 10.0971 18.028C10.046 18.0105 9.99096 18.0073 9.93808 18.0188C9.24354 18.1961 8.71721 19.2101 8.96933 19.9165C9.54533 19.7488 9.79913 19.2997 10.0007 18.7664V18.7689Z"
          fill="url(#dynamicGradient0)"
        />
        <Path
          d="M6.72484 2.32416C7.35419 2.95726 8.48494 2.67603 8.76504 1.8197C8.78834 1.74824 8.74814 1.63642 8.70669 1.56243C8.60404 1.38078 8.55639 1.17093 8.57004 0.96047C8.58369 0.750005 8.65794 0.54878 8.78314 0.383255C8.90409 0.222715 9.06904 0.104515 9.25599 0.0444295C9.44289 -0.0156555 9.64294 -0.0147805 9.82939 0.0469495C10.433 0.249575 10.6716 1.01719 10.2945 1.57378C10.2104 1.69989 10.2104 1.78902 10.2676 1.91345C10.6346 2.71218 11.651 2.92952 12.2417 2.36326C12.1802 2.12995 12.0864 1.91555 12.0731 1.69569C12.0426 1.19543 12.3951 0.7616 12.8558 0.680885C13.0888 0.637455 13.3289 0.684225 13.5313 0.812445C13.7337 0.940665 13.8844 1.14154 13.9552 1.37746C14.026 1.60971 14.0125 1.86106 13.9174 2.08362C13.8223 2.30619 13.6521 2.48442 13.4393 2.58438C13.2992 2.64912 13.2514 2.72353 13.2216 2.87865C13.123 3.39782 12.9966 3.91069 12.8751 4.4248C12.83 4.61485 12.7218 4.69095 12.513 4.6901C10.4991 4.68 8.48524 4.68 6.47134 4.6901C6.28099 4.6901 6.17559 4.6241 6.13454 4.45045C6.00659 3.90985 5.89309 3.36545 5.76194 2.82526C5.74299 2.74707 5.68384 2.64996 5.61824 2.61843C5.07784 2.35906 4.85049 1.75917 5.10279 1.22612C5.16094 1.10377 5.24224 0.994985 5.34174 0.90633C5.44124 0.81768 5.55689 0.750995 5.68174 0.7103C5.80659 0.669605 5.93799 0.65574 6.06809 0.66954C6.19824 0.683345 6.32429 0.724525 6.43874 0.790605C6.93569 1.07689 7.07979 1.70578 6.77114 2.23925C6.75504 2.26741 6.73974 2.29684 6.72484 2.32416ZM12.6916 6V5.37235H6.30474V6H12.6916Z"
          fill="url(#dynamicGradient1)"
        />
        <Path
          d="M9.23067 8.25V14.0833H7.68975L5.57687 11.4333V14.0833H3.75V8.25H5.29096L7.40379 10.9V8.25H9.23067Z"
          fill="#144456"
        />
        <Path
          d="M14.542 14.0833L14.5261 11.425L13.3188 13.5583H12.4927L11.2854 11.5167V14.0833H9.57764V8.25H11.1186L12.9296 11.3583L14.6929 8.25H16.2339L16.2498 14.0833H14.542Z"
          fill="#144456"
        />
      </G>
      <Defs>
        <LinearGradient
          id="dynamicGradient0"
          x1="9.99904"
          y1="20.9741"
          x2="9.99904"
          y2="-0.0154915"
          gradientUnits="userSpaceOnUse"
        >
          {isBlackAndWhite
            ? [
                <Stop key="0" offset="0" stopColor="#555555" />,
                <Stop key="1" offset="1" stopColor="#BBBBBB" />
              ]
            : [
                <Stop key="0" offset="0" stopColor="#F27127" />,
                <Stop key="1" offset="1" stopColor="#FFBB31" />
              ]}
        </LinearGradient>
        <LinearGradient
          id="dynamicGradient1"
          x1="9.49899"
          y1="23.2526"
          x2="9.49899"
          y2="2.18754"
          gradientUnits="userSpaceOnUse"
        >
          {isBlackAndWhite
            ? [
                <Stop key="0" offset="0" stopColor="#BBBBBB" />,
                <Stop key="1" offset="1" stopColor="#555555" />
              ]
            : [
                <Stop key="0" offset="0" stopColor="#F27127" />,
                <Stop key="1" offset="1" stopColor="#FFBB31" />
              ]}
        </LinearGradient>
        <ClipPath id="clip0_761_5431">
          <Rect width="20" height="20" fill="white" />
        </ClipPath>
      </Defs>
    </Svg>
  );
};

export default NMIcon;
