import React from 'react';

const metamaskLinedIcon = (
    fill: string,
    size: number,
    style?: React.CSSProperties,
) => {
    return (
        <svg
            aria-hidden="true"
            data-testid="test-icon"
            width={size}
            height={size}
            viewBox="0 0 24 24"
            fill="none"
            xmlns="http://www.w3.org/2000/svg"
            style={style}
        >
            <title>Metamask</title>
            <path
                fillRule="evenodd"
                clipRule="evenodd"
                d="M20.5691 11.9595C20.554 11.9847 20.5445 12.0129 20.5411 12.0422C20.5378 12.0714 20.5408 12.101 20.5498 12.129L21.8241 16.1199C21.8358 16.1588 21.8358 16.2003 21.8241 16.2391L20.6451 20.4554C20.6377 20.4818 20.6252 20.5065 20.6082 20.5281C20.5912 20.5496 20.5701 20.5676 20.5462 20.581C20.5222 20.5944 20.4959 20.6029 20.4686 20.6061C20.4414 20.6093 20.4138 20.6071 20.3874 20.5995L16.289 19.4304C16.2589 19.4216 16.2273 19.4198 16.1964 19.4251C16.1656 19.4304 16.1364 19.4426 16.111 19.461L13.5362 21.2921C13.5009 21.3173 13.4585 21.3308 13.415 21.3306H10.5886C10.5451 21.3308 10.5027 21.3173 10.4674 21.2921L7.89306 19.461C7.86759 19.4427 7.83828 19.4304 7.80737 19.4251C7.77646 19.4198 7.74475 19.4217 7.71464 19.4304L3.61623 20.5995C3.56294 20.6146 3.50585 20.6078 3.45752 20.5808C3.40919 20.5538 3.37356 20.5087 3.35847 20.4554L2.17763 16.2396C2.16591 16.2007 2.16591 16.1592 2.17763 16.1204L3.4519 12.1295C3.4609 12.1015 3.46387 12.0719 3.46064 12.0427C3.4574 12.0135 3.44802 11.9853 3.43312 11.96L3.32231 11.7722C3.31098 11.7531 3.30274 11.7323 3.2979 11.7107L2.00485 5.80413C1.99683 5.76767 1.99878 5.72972 2.01049 5.69427L2.93262 2.89313C2.94147 2.86634 2.95568 2.84162 2.97437 2.82049C2.99306 2.79935 3.01585 2.78222 3.04136 2.77015C3.06686 2.75808 3.09455 2.75131 3.12275 2.75025C3.15095 2.7492 3.17907 2.75388 3.20541 2.76401L9.20207 5.06136C9.22578 5.07034 9.25091 5.07495 9.27626 5.07497L11.9995 5.08061L14.7226 5.07497C14.748 5.07499 14.7731 5.07038 14.7968 5.06136L20.7944 2.76401C20.8207 2.75386 20.8488 2.74914 20.8769 2.75013C20.9051 2.75112 20.9327 2.75781 20.9582 2.76979C20.9837 2.78177 21.0065 2.79879 21.0253 2.81983C21.044 2.84087 21.0583 2.86548 21.0672 2.89219L21.9894 5.69333C22.0011 5.72878 22.003 5.76673 21.995 5.80319L20.7019 11.7097C20.6979 11.7315 20.6903 11.7524 20.6794 11.7717L20.5691 11.9595ZM19.468 11.2672L20.6613 5.81653L20.1908 4.38734L15.2595 6.27626C15.0885 6.34135 14.9072 6.37479 14.7243 6.37497M14.7243 6.37497L15.462 7.1358L13.7153 8.50655L9.27514 6.37497M9.27357 6.37497C9.09177 6.37462 8.91151 6.34145 8.74145 6.27702L8.737 6.27533L3.8093 4.3875L3.33856 5.81747L4.53032 11.2613L4.55363 11.3008C4.66145 11.4841 4.72931 11.6882 4.75273 11.8995C4.77605 12.11 4.75479 12.3231 4.69031 12.5249L4.68953 12.5273L3.51671 16.2005L4.31443 19.0485L7.35031 18.1825C7.35231 18.182 7.35431 18.1814 7.35631 18.1808C7.57417 18.1182 7.80327 18.1055 8.02656 18.1437C8.25036 18.182 8.46269 18.2704 8.64762 18.4024L8.65146 18.4051L10.9367 20.0306H13.0669L15.3553 18.4031C15.5402 18.2709 15.7527 18.1822 15.9767 18.1438C16.2004 18.1054 16.43 18.1181 16.6482 18.1811L19.6887 19.0484L20.4851 16.2003L19.3128 12.5287L19.3119 12.5258C19.2466 12.3225 19.2253 12.1076 19.2494 11.8955C19.2734 11.6848 19.3415 11.4815 19.4494 11.299L19.468 11.2672M20.5794 15.8639L20.5733 15.8851C20.5752 15.878 20.5773 15.871 20.5794 15.8639ZM10.5821 20.0306C10.5842 20.0306 10.5864 20.0306 10.5886 20.0306L10.5821 20.0306ZM3.4223 15.8644C3.42438 15.8713 3.42638 15.8782 3.42832 15.8851L3.4223 15.8644Z"
                fill={fill || '#2E7DAF'}
            />
            <path
                d="M3.52205 3.65639L2.62387 5.93308C2.60758 5.9742 2.60494 6.01947 2.61636 6.0622L3.99157 11.3156C3.99855 11.3423 4.01073 11.3673 4.02742 11.3892C4.04411 11.4111 4.06498 11.4294 4.08882 11.4432C4.11265 11.457 4.13899 11.466 4.1663 11.4695C4.19361 11.4731 4.22135 11.4712 4.24793 11.464L7.84396 10.4874C7.87088 10.48 7.89609 10.4674 7.91814 10.4503L10.4596 8.44546C10.4852 8.42525 10.5057 8.3993 10.5195 8.36972C10.5333 8.34013 10.5399 8.30773 10.5388 8.27512C10.5378 8.24251 10.5291 8.2106 10.5135 8.18196C10.4978 8.15332 10.4757 8.12875 10.4488 8.11023L3.83381 3.55967C3.80789 3.54199 3.77831 3.5304 3.74728 3.52574C3.71624 3.52109 3.68456 3.5235 3.65459 3.5328C3.62462 3.5421 3.59714 3.55804 3.57419 3.57944C3.55124 3.60084 3.53342 3.62715 3.52205 3.65639Z"
                fill={fill || '#2E7DAF'}
            />
            <path
                d="M20.4769 3.65579L21.3751 5.93247C21.3905 5.97318 21.3926 6.01772 21.3812 6.05971L20.0055 11.3131C19.9986 11.3398 19.9864 11.3648 19.9697 11.3868C19.9531 11.4087 19.9322 11.4271 19.9083 11.4409C19.8845 11.4547 19.8581 11.4637 19.8308 11.4672C19.8035 11.4707 19.7757 11.4688 19.7491 11.4615L16.1536 10.4849C16.1265 10.4776 16.1011 10.465 16.0789 10.4478L13.5402 8.44486C13.5146 8.42464 13.4941 8.3987 13.4804 8.36911C13.4666 8.33953 13.46 8.30713 13.461 8.27452C13.4621 8.24191 13.4708 8.21 13.4864 8.18136C13.502 8.15272 13.5242 8.12815 13.551 8.10962L20.1651 3.5586C20.1911 3.54093 20.2207 3.52935 20.2517 3.52473C20.2828 3.52011 20.3145 3.52256 20.3445 3.53191C20.3744 3.54125 20.4019 3.55725 20.4248 3.5787C20.4478 3.60015 20.4656 3.6265 20.4769 3.65579Z"
                fill={fill || '#2E7DAF'}
            />
            <path
                d="M12.0207 18.4083L13.4231 18.3886C13.4525 18.3883 13.4814 18.3817 13.5081 18.3693C13.5347 18.357 13.5585 18.3391 13.5777 18.317C13.597 18.2948 13.6113 18.2688 13.6198 18.2407C13.6282 18.2126 13.6307 18.183 13.6269 18.1539L13.5006 17.1796C13.5006 17.1796 13.4715 17.0873 13.4363 17.0542L13.1719 16.8063C13.1337 16.7706 13.0834 16.7505 13.0311 16.75H10.9652C10.9128 16.7503 10.8625 16.7705 10.8244 16.8063L10.5595 17.0542C10.5244 17.0875 10.5018 17.1317 10.4952 17.1796L10.3689 18.1539C10.3651 18.183 10.3676 18.2126 10.376 18.2407C10.3845 18.2688 10.3989 18.2948 10.4181 18.317C10.4374 18.3391 10.4611 18.357 10.4877 18.3693C10.5144 18.3817 10.5433 18.3883 10.5727 18.3886L11.9751 18.4083H12.0221H12.0207Z"
                fill={fill || '#2E7DAF'}
            />
            <path
                d="M10.5996 14.2627L9.97633 12.997C9.94507 12.9342 9.89024 12.8864 9.82382 12.864C9.7574 12.8415 9.6848 12.8463 9.62188 12.8772L8.15021 13.5957C8.10132 13.6194 8.06089 13.6576 8.03436 13.705C8.00783 13.7525 7.99648 13.8069 8.00183 13.861C8.00718 13.9151 8.02897 13.9662 8.06428 14.0075C8.09959 14.0488 8.14671 14.0783 8.1993 14.092L10.2949 14.6411C10.3446 14.6543 10.397 14.6528 10.4459 14.6368C10.4948 14.6208 10.5379 14.591 10.5702 14.5509C10.6025 14.5109 10.6224 14.4623 10.6276 14.4112C10.6328 14.36 10.6231 14.3084 10.5996 14.2627Z"
                fill={fill || '#2E7DAF'}
            />
            <path
                d="M13.6584 14.2626L14.2817 12.9968C14.3131 12.9341 14.368 12.8864 14.4343 12.864C14.5007 12.8416 14.5733 12.8462 14.6362 12.877L16.1081 13.5956C16.1569 13.6193 16.1974 13.6575 16.2239 13.7049C16.2504 13.7524 16.2618 13.8068 16.2565 13.8609C16.2511 13.915 16.2293 13.9661 16.194 14.0074C16.1587 14.0488 16.1116 14.0783 16.059 14.092L13.9632 14.6411C13.9135 14.6543 13.861 14.6528 13.8121 14.6368C13.7632 14.6208 13.7201 14.591 13.6878 14.5509C13.6555 14.5108 13.6356 14.4623 13.6304 14.4111C13.6251 14.36 13.6349 14.3084 13.6584 14.2626Z"
                fill={fill || '#2E7DAF'}
            />
        </svg>
    );
};

export default metamaskLinedIcon;
