import CardSpacer from "@saleor/components/CardSpacer"; import Container from "@saleor/components/Container"; import PageHeader from "@saleor/components/PageHeader"; import { AppsInstallationsQuery, AppsListQuery } from "@saleor/graphql"; import { sectionNames } from "@saleor/intl"; import { ListProps } from "@saleor/types"; import React from "react"; import { useIntl } from "react-intl"; import AppsInProgress from "../AppsInProgress/AppsInProgress"; import CustomApps from "../CustomApps/CustomApps"; import InstalledApps from "../InstalledApps/InstalledApps"; import Marketplace from "../Marketplace"; export interface AppsListPageProps extends ListProps { installedAppsList: AppsListQuery["apps"]["edges"]; customAppsList: AppsListQuery["apps"]["edges"]; appsInProgressList?: AppsInstallationsQuery; loadingAppsInProgress: boolean; navigateToCustomApp: (id: string) => () => void; navigateToCustomAppCreate: () => void; onInstalledAppRemove: (id: string) => void; onCustomAppRemove: (id: string) => void; onAppInProgressRemove: (id: string) => void; onAppInstallRetry: (id: string) => void; onRowAboutClick: (id: string) => () => void; } const AppsListPage: React.FC = ({ appsInProgressList, customAppsList, installedAppsList, loadingAppsInProgress, navigateToCustomApp, navigateToCustomAppCreate, onInstalledAppRemove, onCustomAppRemove, onAppInProgressRemove, onAppInstallRetry, onRowAboutClick, ...listProps }) => { const intl = useIntl(); const appsInProgress = appsInProgressList?.appsInstallations; return ( {!!appsInProgress?.length && ( <> )} ); }; AppsListPage.displayName = "AppsListPage"; export default AppsListPage;