import variables from 'config/variables'; import { MdExplore } from 'react-icons/md'; import { Dropdown } from 'components/Form/Settings'; import { Row, Content, Action } from 'components/Layout/Settings/Item'; import { Button } from 'components/Elements'; import Items from 'features/marketplace/components/Items/Items'; import { getBackgroundOptionItems } from '../optionTypes'; import PhotoPackSettings from './PhotoPackSettings'; const SourceSection = ({ backgroundType, marketplaceEnabled, installedPhotoPacks = [], totalPhotoCount = 0, onTypeChange, onPhotoPackUninstall, onGoToPhotoPacks, onToggle, }) => { const showInstalledPhotoPacks = backgroundType === 'photo_pack' && marketplaceEnabled && installedPhotoPacks.length > 0; return ( <> {showInstalledPhotoPacks && ( <>