import React, { memo } from 'react';
import { Path, Svg } from 'react-native-svg';
import {
    getIconSize,
    type StoreIconSizeType
} from '../../../../components/Icons/StoreIcon/StoreIcon';

export type IconSizeType = StoreIconSizeType;

interface TheOrchardIconProps {
    size?: IconSizeType;
}

export const TheOrchardIcon = ({ size = 'small' }: TheOrchardIconProps) => {
    const { width, height } = getIconSize(size);

    return (
        <Svg
            width={width}
            height={height}
            viewBox="0 0 16 16"
            fill="none"
            testID="theOrchardIcon"
        >
            <Path
                d="M12.6118 9.69298C12.6121 10.5448 12.3596 11.3776 11.8865 12.0859C11.4133 12.7942 10.7407 13.3463 9.95372 13.6722C9.16674 13.9982 8.30076 14.0835 7.46533 13.9172C6.6299 13.7509 5.86256 13.3405 5.26039 12.7381C4.65821 12.1356 4.24827 11.368 4.08241 10.5325C3.91656 9.69698 4.00224 8.83104 4.32863 8.04423C4.65501 7.25742 5.20743 6.5851 5.916 6.11231C6.62457 5.63952 7.45745 5.38752 8.30927 5.38818C9.45059 5.38878 10.545 5.84258 11.3518 6.64982C12.1586 7.45706 12.6118 8.55167 12.6118 9.69298Z"
                fill="#F18638"
            />
            <Path
                d="M8.78321 2.58575C8.33607 2.51644 7.97277 2.51756 7.66537 2.47396C7.27971 2.4449 6.54753 2.34318 6.34073 2C6.34073 2 6.34073 2.0313 6.3329 2.08719C6.32148 2.32381 6.3433 2.56087 6.39774 2.79143C6.46946 3.07745 6.57647 3.35344 6.71632 3.61304C6.76327 3.69688 6.81581 3.78295 6.87394 3.86903C7.23388 4.39106 7.80398 4.7633 8.66248 4.95668C9.78703 5.21043 10.8534 5.39152 11.6806 6.44676C11.6811 6.44193 11.6811 6.43706 11.6806 6.43223C11.8349 5.8599 11.2581 2.97364 8.78321 2.58575Z"
                fill="#86A315"
            />
        </Svg>
    );
};

export default memo(TheOrchardIcon);
