import { forwardRef } from 'react';
import type { IconProps } from './types';

type ZeroExLogoProps = Omit<IconProps, 'color'>;

export const ZeroExLogo = forwardRef<SVGSVGElement, ZeroExLogoProps>(function ZeroExLogo(props, ref) {
    return (
        <svg
            width="33"
            height="21"
            viewBox="0 0 33 21"
            fill="none"
            xmlns="http://www.w3.org/2000/svg"
            {...props}
            ref={ref}
        >
            <path
                fillRule="evenodd"
                clipRule="evenodd"
                d="M12.8227 2.02254C11.565 1.14435 10.0613 0.705261 8.3115 0.705261C6.56171 0.705261 5.05798 1.14435 3.80032 2.02254C2.54266 2.88242 1.59486 4.07163 0.956916 5.59015C0.318972 7.10868 0 8.84675 0 10.8044C0 12.762 0.318972 14.5001 0.956916 16.0186C1.59486 17.5371 2.54266 18.7355 3.80032 19.6136C5.05798 20.4735 6.56171 20.9035 8.3115 20.9035C10.0613 20.9035 11.565 20.4735 12.8227 19.6136C14.0803 18.7355 15.0281 17.5371 15.6661 16.0186C16.304 14.5001 16.623 12.762 16.623 10.8044C16.623 8.84675 16.304 7.10868 15.6661 5.59015C15.0281 4.07163 14.0803 2.88242 12.8227 2.02254ZM10.6799 5.40462C10.0688 4.7599 9.27937 4.43754 8.3115 4.43754C7.01738 4.43754 6.03313 5.01385 5.35873 6.16646C4.70256 7.31908 4.37447 8.86505 4.37447 10.8044C4.37447 12.0218 4.50377 13.0842 4.76236 13.9917L10.6799 5.40462ZM5.92574 16.2019C6.54728 16.8481 7.34253 17.1712 8.3115 17.1712C9.60561 17.1712 10.5808 16.5949 11.2369 15.4423C11.9113 14.2897 12.2485 12.7437 12.2485 10.8044C12.2485 9.58322 12.1148 8.51803 11.8474 7.6088L5.92574 16.2019Z"
                fill="#26272B"
            />
            <path
                d="M21.8142 12.8901L16.6742 20.4644H21.5955L24.0015 16.1832C24.1837 15.8905 24.2931 15.5063 24.3296 15.0306C24.3478 14.8477 24.3842 14.7105 24.4389 14.619C24.4936 14.5092 24.603 14.4543 24.767 14.4543C25.0222 14.4543 25.168 14.619 25.2045 14.9483V15.0306C25.2409 15.5063 25.3503 15.8905 25.5325 16.1832L27.9385 20.4644H32.8598L27.7198 12.8901L32.4223 5.97436H27.501L25.5325 9.56942C25.3138 9.95363 25.2045 10.3378 25.2045 10.722C25.2045 10.8867 25.168 11.0239 25.0951 11.1337C25.0404 11.2435 24.931 11.2983 24.767 11.2983C24.603 11.2983 24.4845 11.2435 24.4116 11.1337C24.3569 11.0239 24.3296 10.8867 24.3296 10.722C24.3296 10.3378 24.2202 9.95363 24.0015 9.56942L22.033 5.97436H17.1117L21.8142 12.8901Z"
                fill="#26272B"
            />
        </svg>
    );
});
