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

export const IconBitbucketColor24 = forwardRef<SVGSVGElement, IconProps>(
    ({ color = 'currentColor', title, ...props }, svgRef) => {
        const titleId = useMemo(
            () =>
                title
                    ? 'title-' + Math.random().toString(36).substr(2, 9)
                    : undefined,
            [title]
        );
        return (
            <svg
                xmlns="http://www.w3.org/2000/svg"
                width={24}
                height={24}
                fill="none"
                viewBox="0 0 24 24"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill="#2684ff"
                    fillRule="evenodd"
                    d="M2.153 3.225A.64.64 0 0 1 2.643 3l18.715.003a.64.64 0 0 1 .634.744L19.289 20.45a.644.644 0 0 1-.634.54H5.572a.874.874 0 0 1-.847-.717L2.008 3.743a.64.64 0 0 1 .145-.518m7.765 11.722h4.187l1.011-5.897H8.804z"
                    clipRule="evenodd"
                />
                <path
                    fill="url(#bitbucket-color-24__a)"
                    d="M21.138 9.05h-6.005l-1.001 5.897H9.918L5.011 20.79a.87.87 0 0 0 .56.21h13.085c.315 0 .583-.23.633-.54z"
                />
                <defs>
                    <linearGradient
                        id="bitbucket-color-24__a"
                        x1={17.29}
                        x2={10.339}
                        y1={7.014}
                        y2={16.89}
                        gradientUnits="userSpaceOnUse"
                    >
                        <stop offset={0.18} stopColor="#0052cc" />
                        <stop offset={1} stopColor="#2684ff" />
                    </linearGradient>
                </defs>
            </svg>
        );
    }
);
