import React, { useState } from 'react'; import PropTypes from 'prop-types'; import Box from '../../ui/box'; import Button from '../../ui/button'; import Typography from '../../ui/typography/typography'; import { COLORS, TYPOGRAPHY, TEXT_ALIGN, JUSTIFY_CONTENT, FLEX_DIRECTION, ALIGN_ITEMS, DISPLAY, BLOCK_SIZES, SIZES, FLEX_WRAP, } from '../../../helpers/constants/design-system'; import { ENVIRONMENT_TYPE_POPUP } from '../../../../shared/constants/app'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { getEnvironmentType } from '../../../../app/scripts/lib/util'; export default function CollectiblesItems({ onAddNFT, onRefreshList }) { const t = useI18nContext(); const collections = {}; const defaultDropdownState = {}; Object.keys(collections).forEach((key) => { defaultDropdownState[key] = true; }); const [dropdownState, setDropdownState] = useState(defaultDropdownState); const width = getEnvironmentType() === ENVIRONMENT_TYPE_POPUP ? BLOCK_SIZES.ONE_THIRD : BLOCK_SIZES.ONE_SIXTH; return (