import React, { memo, SVGAttributes } from 'react';

export interface WixLogoProps extends SVGAttributes<SVGElement> {
  height?: string | number;
}

export const WixLogo = memo(function WixLogo({
  height = 24,
  ...rest
}: WixLogoProps) {
  return (
    <svg height={height} viewBox="0 0 61 24" {...rest}>
      <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
        <g transform="translate(-1683.000000, -1304.000000)" fill="#000000">
          <g transform="translate(112.000000, 949.000000)">
            <g transform="translate(1571.000000, 355.000000)">
              <path d="M0,0.0273292282 C0,0.0273292282 2.41786898,-0.277699005 4.03035161,1.15034867 C5.0246874,2.03106399 5.31452389,3.4350531 5.31452389,3.4350531 L5.31452389,3.4350531 L8.60703217,16.2522535 L11.3446618,5.76186001 C11.6114139,4.64657368 12.0919098,3.26836161 12.8519825,2.33609222 C13.821524,1.1486302 15.7905312,1.0738768 16.000855,1.0738768 C16.2103238,1.0738768 18.179331,1.1486302 19.1480175,2.33609222 C19.9089452,3.26836161 20.3894411,4.64657368 20.6561932,5.76186001 L20.6561932,5.76186001 L23.3938228,16.2522535 L26.6854761,3.4350531 C26.6854761,3.4350531 26.9761676,2.03106399 27.9705034,1.15034867 C29.582986,-0.277699005 32,0.0273292282 32,0.0273292282 L32,0.0273292282 L25.6962702,23.9802083 C25.6962702,23.9802083 23.6169713,24.1314335 22.5764668,23.5978489 C21.209362,22.8984321 20.5595811,22.3579736 19.7319654,19.0988973 C18.994122,16.1929664 16.9293577,7.6590497 16.7404083,7.0507117 C16.647216,6.74997964 16.5360693,6.0333781 16.000855,6.0333781 C15.4759004,6.0333781 15.3553489,6.75083887 15.2595917,7.0507117 C15.0672224,7.65819046 13.005878,16.1929664 12.2688896,19.0988973 C11.4412739,22.3579736 10.790638,22.8984321 9.42438816,23.5978489 C8.38302875,24.1314335 6.30372983,23.9802083 6.30372983,23.9802083 L6.30372983,23.9802083 Z M37.9984057,4 L37.9984057,4.86521142 L38,4.86435563 L38,19.3239127 C37.9888402,22.2909632 37.7018733,22.9499274 36.4535672,23.6328539 C35.4834595,24.1643042 34,23.962336 34,23.962336 L34,23.962336 L34,7.76722125 C34,6.95421349 34.2518932,6.42105155 35.1813472,5.94266066 C35.7361499,5.65682425 36.2534874,5.43774005 36.7915504,5.11424854 C37.5260064,4.67394065 37.899163,4.15107503 37.9809763,4.02723843 L37.9984057,4 Z M40,0.106754283 C40,0.106754283 43.2565301,-0.4696547 44.8691229,1.05628515 C45.9010173,2.03326407 47.0549904,3.78993907 47.0549904,3.78993907 L47.0549904,3.78993907 L49.8941435,8.04610183 C50.0318944,8.2674017 50.211713,8.50842987 50.4995876,8.50842987 C50.7874622,8.50842987 50.9681056,8.2674017 51.1058565,8.04610183 L51.1058565,8.04610183 L53.9450096,3.78993907 C53.9450096,3.78993907 55.0989827,2.03326407 56.1308771,1.05628515 C57.7434699,-0.4696547 61,0.106754283 61,0.106754283 L61,0.106754283 L53.2834754,12.0415081 L60.9793786,23.9393787 C60.9793786,23.9393787 57.6469618,24.3854095 56.0335441,22.8577541 C55.0016497,21.8816329 53.9450096,20.2930772 53.9450096,20.2930772 L53.9450096,20.2930772 L51.1058565,16.0377722 C50.9681056,15.8156146 50.7874622,15.5754442 50.4995876,15.5754442 C50.211713,15.5754442 50.0318944,15.8156146 49.8941435,16.0377722 L49.8941435,16.0377722 L47.0549904,20.2930772 C47.0549904,20.2930772 46.0560902,21.8816329 45.0241958,22.8577541 C43.411603,24.3854095 40.0197965,23.9393787 40.0197965,23.9393787 L40.0197965,23.9393787 L47.7156998,12.0415081 Z M37.9895884,0.000831696656 L38,0.00107031391 C38,1.59175218 37.8509366,2.53585594 36.8903946,3.26969716 C36.5834994,3.50406094 36.0518135,3.86225524 35.4292547,4.09661902 C34.5755281,4.41990808 34,5 34,5 C34,2.10369577 34.4232762,1.05487627 35.5599841,0.434061564 C36.4336389,-0.0429767806 38,0.00107031391 38,0.00107031391 Z" />
            </g>
          </g>
        </g>
      </g>
    </svg>
  );
});
