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 && (
<>
} label="Get more" />
{}}
viewType="grid"
showChips={false}
/>
{/* Settings for API packs */}
{installedPhotoPacks.map((pack) =>
pack.api_enabled ? : null,
)}
>
)}
>
);
};
export default SourceSection;