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 DRMIconProps {
    active?: boolean;
    size?: IconSizeType;
}

export const DRMIcon: React.FC<DRMIconProps> = ({ active, size = 'small' }) => {
    const { width, height } = getIconSize(size);
    return (
        <Svg width={width} height={height} viewBox="0 0 16 16" fill="none">
            <Path
                fillRule="evenodd"
                clipRule="evenodd"
                d="M15 11.9258H1V5H15V11.9258ZM1.4123 11.5135H14.5881V5.4123H1.41195V11.5135H1.4123ZM14.1743 11.1169H1.82561V5.80955H14.1743V11.1169ZM5.46981 9.48595C5.88001 9.1111 5.88981 8.5637 5.88981 8.5637L5.89016 8.56335C5.89016 8.56335 5.95421 7.90815 5.53036 7.4808C5.17196 7.11925 4.48351 7.1105 4.48351 7.1105H2.90571V9.86325H4.39426C4.39426 9.86325 5.05576 9.86395 5.46981 9.48595ZM7.42491 9.09395L7.96636 9.8559L7.96601 9.85625H9.09861L8.38986 8.94625C8.38986 8.94625 8.59811 8.8696 8.75316 8.63475C8.86026 8.47235 8.90436 8.2928 8.90611 8.0471C8.90751 7.8441 8.80286 7.53085 8.56416 7.33485C8.35801 7.16545 8.16551 7.114 7.84491 7.1105C7.41756 7.10595 6.23526 7.107 6.23526 7.107V9.85975H7.26461V9.09395H7.42491ZM12.1303 9.86395H13.089L13.0998 7.086H11.5185L11.2193 8.29875L10.9228 7.086H9.36041L9.34991 9.86395H10.3355L10.3275 8.45625L10.688 9.86395H11.7191L12.1303 8.45625V9.86395ZM13.0123 6.52215C13.0123 6.78885 13.2293 7.0062 13.4964 7.0062C13.7631 7.0062 13.9804 6.78885 13.9804 6.52215C13.9804 6.25545 13.7631 6.0381 13.4964 6.0381C13.2297 6.0381 13.0123 6.25545 13.0123 6.52215ZM4.64219 7.9463C4.50539 7.8515 4.38449 7.83621 4.30631 7.82633L4.28414 7.82345C4.16199 7.8063 3.93974 7.81155 3.93974 7.81155L3.93694 9.15765C3.93694 9.15765 4.20679 9.15625 4.31949 9.13665C4.43849 9.116 4.66844 9.06035 4.76644 8.88115C4.85023 8.728 4.8482 8.57401 4.84688 8.47443L4.84659 8.44225C4.84659 8.346 4.81999 8.06915 4.64219 7.9463ZM7.58494 7.82275C7.49359 7.8098 7.26783 7.8119 7.26783 7.8119L7.26958 8.42965C7.26958 8.42965 7.56498 8.4384 7.67033 8.39955C7.77918 8.35895 7.85723 8.2767 7.85723 8.1094C7.85723 7.9421 7.76099 7.8476 7.58494 7.82275ZM13.1275 6.52216C13.1275 6.31916 13.2927 6.15361 13.496 6.15361C13.6994 6.15361 13.8646 6.31881 13.8646 6.52216C13.8646 6.72551 13.6994 6.89106 13.496 6.89106C13.2927 6.89106 13.1275 6.72516 13.1275 6.52216ZM13.4201 6.69051H13.4922H13.4925V6.34471H13.4194L13.4215 6.56521L13.2874 6.34471H13.2115V6.69051H13.2857L13.2839 6.47736L13.4201 6.69051ZM13.5191 6.62961V6.69051L13.5195 6.69086H13.7883V6.62541L13.621 6.62331L13.7879 6.41261V6.34506H13.5198V6.41156H13.6976L13.5191 6.62961Z"
                fill={active ? 'black' : 'white'}
            />
        </Svg>
    );
};

export default memo(DRMIcon);
