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

interface MassApealIconProps {
    active?: boolean;
    size?: IconSizeType;
}

export const MassApealIcon: React.FC<MassApealIconProps> = ({
    active,
    size = 'small'
}) => {
    const { width, height } = getIconSize(size);
    return (
        <Svg width={width} height={height} viewBox="0 0 16 16" fill="none">
            <Path
                d="M4.37454 10.4388C4.35481 10.3185 4.35597 10.2067 4.37744 10.1054C4.4169 9.92182 4.47725 9.74879 4.55791 9.59105L5.84679 7.05202C5.96111 6.82887 6.06732 6.68854 6.16249 6.63526C6.21936 6.6015 6.35166 6.56035 6.65691 6.55613H7.32427C7.42756 6.55613 7.50359 6.56879 7.55176 6.59358C7.64519 6.64054 7.68058 6.70331 7.66143 6.79088C7.65737 6.8104 7.63011 6.88373 7.49721 7.15436L6.41666 9.28877C6.21819 9.67388 6.04178 9.95716 5.89264 10.1323C5.83983 10.1956 5.75162 10.2895 5.63091 10.4119L5.54387 10.5H8.93522L8.92362 10.4383C8.9004 10.3185 8.89982 10.2083 8.92013 10.1112C8.96017 9.92446 9.02111 9.74984 9.10178 9.59158L10.4028 7.01878C10.509 6.81726 10.61 6.68643 10.7011 6.63104C10.7876 6.58145 10.9245 6.55613 11.1068 6.55613H11.7741C11.968 6.55613 12.095 6.58831 12.1531 6.65161C12.1885 6.69065 12.1983 6.74393 12.1833 6.81515C12.1682 6.88531 12.1293 6.98449 12.0666 7.11004L10.9599 9.28877C10.765 9.67335 10.5891 9.95664 10.4365 10.1318C10.3825 10.1961 10.2949 10.29 10.1748 10.4114L10.0877 10.4995H13.4721L13.4623 10.4388C13.4425 10.3185 13.4437 10.2067 13.4652 10.1054C13.504 9.92498 13.5644 9.75195 13.6456 9.59105L14.7262 7.45664C14.862 7.19076 14.9415 7.00032 14.9682 6.87423C15.0535 6.47647 14.967 6.13516 14.7117 5.86031C14.4923 5.62133 14.1511 5.5 13.6979 5.5H11.7294C11.4973 5.5 11.3122 5.52954 11.1799 5.5881C11.0557 5.64085 10.9303 5.74267 10.7986 5.89829C10.7563 5.75744 10.682 5.65299 10.5752 5.58704C10.476 5.52901 10.3071 5.50053 10.0587 5.50053H7.32949C7.03295 5.50053 6.79967 5.53323 6.63428 5.59812C6.5629 5.62872 6.4892 5.67461 6.4126 5.73739L6.53214 5.50053H3.50058L3.5116 5.56172C3.53366 5.68464 3.53482 5.79648 3.51393 5.89407C3.47505 6.07396 3.41412 6.24858 3.33288 6.41317L1.8728 9.28825C1.67433 9.67282 1.49791 9.95664 1.34877 10.1318C1.29596 10.1951 1.20833 10.289 1.08705 10.4114L1 10.4995H4.3844L4.37454 10.4388Z"
                fill={active ? 'black' : 'white'}
            />
        </Svg>
    );
};

export default memo(MassApealIcon);
