import { useColorScheme } from 'react-native';
import Svg, { Path } from 'react-native-svg';

export const Mada = (props: any) => {
  const isLightTheme = useColorScheme() === 'light';

  return isLightTheme ? (
    <Svg
      xmlns="http://www.w3.org/2000/svg"
      xmlSpace="preserve"
      style={{
        fillRule: 'evenodd',
        clipRule: 'evenodd',
        strokeLinecap: 'round',
        strokeLinejoin: 'round',
        strokeMiterlimit: 1.5,
      }}
      viewBox="0 0 96 64"
      {...props}
    >
      <Path
        d="M95 6.894A5.897 5.897 0 0 0 89.106 1H6.894A5.897 5.897 0 0 0 1 6.894v50.212A5.897 5.897 0 0 0 6.894 63h82.212A5.897 5.897 0 0 0 95 57.106V6.894Z"
        // @ts-ignore
        style={{
          fill: '#fff',
          stroke: '#7e7e7e',
          strokeWidth: '.5px',
        }}
      />
      <Path
        d="M5.311 34.182h36.116v12.031H5.311z"
        // @ts-ignore
        style={{
          fill: '#84b740',
        }}
      />
      <Path
        d="M5.311 17.765h36.116v12.042H5.311z"
        // @ts-ignore
        style={{
          fill: '#259bd6',
        }}
      />
      <Path
        d="m77.542 43.769-.161.032c-.557.107-.761.15-1.168.15-.944 0-2.059-.483-2.059-2.756 0-1.169.193-2.724 1.951-2.724h.011c.3.022.644.054 1.287.247l.139.043v5.008Zm.29-11.335-.29.054v4.203l-.257-.075-.075-.021c-.29-.086-.954-.279-1.598-.279-3.517 0-4.257 2.659-4.257 4.89 0 3.056 1.716 4.815 4.708 4.815 1.265 0 2.198-.129 3.141-.44.869-.279 1.18-.676 1.18-1.523V31.995c-.836.15-1.705.3-2.552.439M87.997 43.844l-.15.043-.536.139c-.504.129-.954.204-1.297.204-.826 0-1.319-.408-1.319-1.105 0-.45.203-1.211 1.555-1.211h1.747v1.93Zm-1.233-7.582c-1.083 0-2.198.193-3.581.622l-.901.268.3 2.038.88-.29c.922-.3 2.069-.493 2.927-.493.386 0 1.566 0 1.566 1.276v.558h-1.641c-2.992 0-4.375.954-4.375 3.002 0 1.748 1.276 2.799 3.421 2.799.664 0 1.587-.129 2.38-.322l.043-.01.043.01.268.043c.836.15 1.705.3 2.552.461v-6.691c0-2.166-1.308-3.271-3.882-3.271M67.162 43.844l-.15.043-.536.139c-.504.129-.944.204-1.297.204-.826 0-1.319-.408-1.319-1.105 0-.45.203-1.211 1.544-1.211h1.748l.01 1.93Zm-1.222-7.582c-1.094 0-2.198.193-3.582.622l-.9.268.3 2.038.879-.29c.922-.3 2.07-.493 2.928-.493.386 0 1.565 0 1.565 1.276v.558h-1.641c-2.991 0-4.385.954-4.385 3.002 0 1.748 1.276 2.799 3.431 2.799.665 0 1.587-.129 2.381-.322l.043-.01.042.01.258.043c.847.15 1.705.3 2.552.472v-6.691c.011-2.188-1.298-3.282-3.871-3.282M55.871 36.284c-1.362 0-2.488.45-2.906.643l-.107.054-.097-.075c-.579-.418-1.426-.633-2.606-.633-1.04 0-2.016.15-3.077.461-.912.279-1.266.719-1.266 1.544v7.646h2.853v-7.067l.139-.042c.579-.193.922-.226 1.255-.226.826 0 1.244.44 1.244 1.298v6.048h2.809v-6.166c0-.365-.075-.579-.086-.622l-.096-.182.193-.086c.429-.193.901-.29 1.394-.29.568 0 1.244.226 1.244 1.298v6.048h2.799v-6.327c0-2.241-1.201-3.324-3.689-3.324M85.896 25.614a9.737 9.737 0 0 1-1.662-.15l-.161-.032v-4.128c0-.344-.065-.558-.075-.59l-.086-.172.182-.075c.043-.021.086-.032.14-.053l.032-.022.193-.064c.032-.011.053-.022.075-.022.633-.171 1.212-.15 1.469-.171h.011c1.748 0 1.951 1.555 1.951 2.723-.01 2.274-1.136 2.756-2.069 2.756m-.011-7.849h-.075c-1.641 0-3.324.45-3.925 1.33-.321.429-.504.965-.514 1.597v4.258c0 .364-.076.504-.086.536l-.097.182h-5.179v-2.96h-.011c-.064-3.12-1.909-4.836-4.579-4.836h-2.605c-.108.762-.193 1.298-.301 2.059h2.595c1.362 0 2.081 1.158 2.081 2.938v2.981l-.183-.096a1.951 1.951 0 0 0-.611-.086h-4.482c-.086.568-.193 1.308-.311 2.048h13.779c.472-.096 1.019-.182 1.491-.257.697.343 1.994.525 2.884.525 2.992 0 4.933-2.005 4.933-5.093-.011-3.056-1.887-5.062-4.804-5.126M57.78 28.971h4.074c2.992 0 4.386-.987 4.386-3.421 0-1.748-1.276-3.142-3.421-3.142h-2.755c-.826 0-1.319-.472-1.319-1.265 0-.536.203-1.201 1.554-1.201h6.027c.129-.783.193-1.276.311-2.059h-6.262c-2.917 0-4.386 1.222-4.386 3.26 0 2.016 1.276 3.067 3.42 3.067h2.756c.826 0 1.319.654 1.319 1.34 0 .45-.203 1.383-1.544 1.383h-.461l-8.825-.021h-1.609c-1.361 0-2.316-.772-2.316-2.563v-1.233c0-1.866.74-3.024 2.316-3.024h2.617c.118-.794.193-1.298.3-2.048h-3.571c-2.67 0-4.514 1.791-4.579 4.911v1.394c.065 3.12 1.909 4.611 4.579 4.611h2.606l4.783.011Z"
        // @ts-ignore
        style={{
          fill: '#27292d',
          fillRule: 'nonzero',
        }}
      />
    </Svg>
  ) : (
    <Svg
      xmlns="http://www.w3.org/2000/svg"
      xmlSpace="preserve"
      style={{
        fillRule: 'evenodd',
        clipRule: 'evenodd',
        strokeLinejoin: 'round',
        strokeMiterlimit: 2,
      }}
      viewBox="0 0 96 64"
      {...props}
    >
      <Path
        d="M235.31 16.084c0-7.824-6.574-14.176-14.672-14.176H15.992c-8.097 0-14.671 6.352-14.671 14.176v120.764c0 7.824 6.574 14.176 14.671 14.176h204.646c8.098 0 14.672-6.352 14.672-14.176V16.084Z"
        // @ts-ignore
        style={{
          fill: '#343434',
        }}
        transform="matrix(.40173 0 0 .41578 .47 .207)"
      />
      <Path
        d="M0 153.1h336.8v112.2H0zM0 0h336.8v112.3H0z"
        // @ts-ignore
        style={{
          fill: '#f9f9f9',
        }}
        transform="matrix(.10726 0 0 .10734 5.3 17.8)"
      />
      <Path
        d="m673.6 242.5-1.5.3c-5.2 1-7.1 1.4-10.9 1.4-8.8 0-19.2-4.5-19.2-25.7 0-10.9 1.8-25.4 18.2-25.4h.1c2.8.2 6 .5 12 2.3l1.3.4v46.7Zm2.7-105.7-2.7.5v39.2l-2.4-.7-.7-.2c-2.7-.8-8.9-2.6-14.9-2.6-32.8 0-39.7 24.8-39.7 45.6 0 28.5 16 44.9 43.9 44.9 11.8 0 20.5-1.2 29.3-4.1 8.1-2.6 11-6.3 11-14.2V132.7c-7.8 1.4-15.9 2.8-23.8 4.1M771.1 243.2l-1.4.4-5 1.3c-4.7 1.2-8.9 1.9-12.1 1.9-7.7 0-12.3-3.8-12.3-10.3 0-4.2 1.9-11.3 14.5-11.3h16.3v18Zm-11.5-70.7c-10.1 0-20.5 1.8-33.4 5.8l-8.4 2.5 2.8 19 8.2-2.7c8.6-2.8 19.3-4.6 27.3-4.6 3.6 0 14.6 0 14.6 11.9v5.2h-15.3c-27.9 0-40.8 8.9-40.8 28 0 16.3 11.9 26.1 31.9 26.1 6.2 0 14.8-1.2 22.2-3l.4-.1.4.1 2.5.4c7.8 1.4 15.9 2.8 23.8 4.3V203c0-20.2-12.2-30.5-36.2-30.5M576.8 243.2l-1.4.4-5 1.3c-4.7 1.2-8.8 1.9-12.1 1.9-7.7 0-12.3-3.8-12.3-10.3 0-4.2 1.9-11.3 14.4-11.3h16.3l.1 18Zm-11.4-70.7c-10.2 0-20.5 1.8-33.4 5.8l-8.4 2.5 2.8 19 8.2-2.7c8.6-2.8 19.3-4.6 27.3-4.6 3.6 0 14.6 0 14.6 11.9v5.2h-15.3c-27.9 0-40.9 8.9-40.9 28 0 16.3 11.9 26.1 32 26.1 6.2 0 14.8-1.2 22.2-3l.4-.1.4.1 2.4.4c7.9 1.4 15.9 2.8 23.8 4.4v-62.4c.1-20.4-12.1-30.6-36.1-30.6M471.5 172.7c-12.7 0-23.2 4.2-27.1 6l-1 .5-.9-.7c-5.4-3.9-13.3-5.9-24.3-5.9-9.7 0-18.8 1.4-28.7 4.3-8.5 2.6-11.8 6.7-11.8 14.4v71.3h26.6v-65.9l1.3-.4c5.4-1.8 8.6-2.1 11.7-2.1 7.7 0 11.6 4.1 11.6 12.1v56.4h26.2v-57.5c0-3.4-.7-5.4-.8-5.8l-.9-1.7 1.8-.8c4-1.8 8.4-2.7 13-2.7 5.3 0 11.6 2.1 11.6 12.1v56.4h26.1v-59c0-20.9-11.2-31-34.4-31M751.5 73.2c-3.9 0-10.4-.4-15.5-1.4l-1.5-.3V33c0-3.2-.6-5.2-.7-5.5l-.8-1.6 1.7-.7c.4-.2.8-.3 1.3-.5l.3-.2 1.8-.6c.3-.1.5-.2.7-.2 5.9-1.6 11.3-1.4 13.7-1.6h.1c16.3 0 18.2 14.5 18.2 25.4-.1 21.2-10.6 25.7-19.3 25.7M751.4 0h-.7c-15.3 0-31 4.2-36.6 12.4-3 4-4.7 9-4.8 14.9V67c0 3.4-.7 4.7-.8 5l-.9 1.7h-48.3V46.1h-.1C658.6 17 641.4 1 616.5 1h-24.3c-1 7.1-1.8 12.1-2.8 19.2h24.2c12.7 0 19.4 10.8 19.4 27.4v27.8l-1.7-.9c-.3-.1-2.4-.8-5.7-.8h-41.8c-.8 5.3-1.8 12.2-2.9 19.1h128.5c4.4-.9 9.5-1.7 13.9-2.4 6.5 3.2 18.6 4.9 26.9 4.9 27.9 0 46-18.7 46-47.5C796.1 19.3 778.6.6 751.4 0M489.3 104.5h38c27.9 0 40.9-9.2 40.9-31.9 0-16.3-11.9-29.3-31.9-29.3h-25.7c-7.7 0-12.3-4.4-12.3-11.8 0-5 1.9-11.2 14.5-11.2H569c1.2-7.3 1.8-11.9 2.9-19.2h-58.4c-27.2 0-40.9 11.4-40.9 30.4 0 18.8 11.9 28.6 31.9 28.6h25.7c7.7 0 12.3 6.1 12.3 12.5 0 4.2-1.9 12.9-14.4 12.9h-4.3l-82.3-.2h-15c-12.7 0-21.6-7.2-21.6-23.9V49.9c0-17.4 6.9-28.2 21.6-28.2h24.4c1.1-7.4 1.8-12.1 2.8-19.1h-33.3c-24.9 0-42.1 16.7-42.7 45.8v13c.6 29.1 17.8 43 42.7 43h24.3l44.6.1Z"
        // @ts-ignore
        style={{
          fill: '#f9f9f9',
          fillRule: 'nonzero',
        }}
        transform="matrix(.10726 0 0 .10734 5.3 17.8)"
      />
    </Svg>
  );
};
