import Container from "@saleor/components/Container"; import PageHeader from "@saleor/components/PageHeader"; import { sectionNames } from "@saleor/intl"; import { ListProps } from "@saleor/types"; import React from "react"; import { useIntl } from "react-intl"; import { AppsInstallations } from "../../types/AppsInstallations"; import { AppsList_apps_edges } from "../../types/AppsList"; 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: AppsList_apps_edges[]; customAppsList: AppsList_apps_edges[]; appsInProgressList?: AppsInstallations; loadingAppsInProgress: boolean; navigateToCustomApp: (id: string) => () => void; navigateToCustomAppCreate: () => void; onInstalledAppRemove: (id: string) => void; onCustomAppRemove: (id: string) => void; onAppInProgressRemove: (id: string) => void; onAppInstallRetry: (id: string) => void; onSettingsRowClick: (id: string) => () => void; } const AppsListPage: React.FC = ({ appsInProgressList, customAppsList, installedAppsList, loadingAppsInProgress, navigateToCustomApp, navigateToCustomAppCreate, onInstalledAppRemove, onCustomAppRemove, onAppInProgressRemove, onAppInstallRetry, onSettingsRowClick, ...listProps }) => { const intl = useIntl(); const appsInProgress = appsInProgressList?.appsInstallations; return ( {!!appsInProgress?.length && ( )} ); }; AppsListPage.displayName = "AppsListPage"; export default AppsListPage;