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 AltafonteIconProps {
    size?: IconSizeType;
}

export const AltafonteIcon: React.FC<AltafonteIconProps> = ({
    size = 'small'
}) => {
    const { width, height } = getIconSize(size);
    return (
        <Svg width={width} height={height} viewBox="0 0 16 16" fill="none">
            <Path
                d="M8.33 5.055c-.3 0-.59.03-.872.087V1.815c0-.45-.054-.685-.255-.78-.18-.088-.452-.011-.769.26-1.698 1.46-2.782 3.111-3.218 4.91-.477 1.96-.163 3.992.937 6.046l.002.004C4.925 13.882 6.506 15 8.329 15 10.905 15 13 12.77 13 10.028c0-2.74-2.095-4.973-4.67-4.973zM6.2 3.33v2.27a4.841 4.841 0 00-1.927 1.964 6.13 6.13 0 01.158-1.026c.277-1.13.87-2.205 1.769-3.208zm2.13 10.33c-1.884 0-3.414-1.632-3.414-3.635 0-1.147.503-2.17 1.284-2.838v2.721l-.002.117c0 1.252.957 2.27 2.131 2.27s2.131-1.02 2.131-2.27-.955-2.269-2.13-2.269c-.311 0-.606.073-.872.2V6.514c.278-.08.57-.122.871-.122 1.883 0 3.413 1.632 3.413 3.634 0 2.003-1.53 3.635-3.413 3.635zm-.872-3.707c.034-.48.412-.862.871-.862s.875.418.875.932-.392.932-.875.932-.855-.396-.875-.893l.002-.039v-.07h.002z"
                fill="#E84133"
            />
        </Svg>
    );
};

export default memo(AltafonteIcon);
