import { ReactElement } from "react"; import { useRouter } from "next/router"; import useSWR from "swr"; // services import { IntegrationService } from "services/integrations"; // layouts import { AppLayout } from "layouts/app-layout"; import { WorkspaceSettingLayout } from "layouts/settings-layout"; // components import { SingleIntegrationCard } from "components/integration"; import { WorkspaceSettingHeader } from "components/headers"; // ui import { IntegrationAndImportExportBanner } from "components/ui"; import { Loader } from "@plane/ui"; // types import { NextPageWithLayout } from "types/app"; // fetch-keys import { APP_INTEGRATIONS } from "constants/fetch-keys"; // services const integrationService = new IntegrationService(); const WorkspaceIntegrationsPage: NextPageWithLayout = () => { const router = useRouter(); const { workspaceSlug } = router.query; const { data: appIntegrations } = useSWR(workspaceSlug ? APP_INTEGRATIONS : null, () => workspaceSlug ? integrationService.getAppIntegrationsList() : null ); return ( {appIntegrations ? ( appIntegrations.map((integration) => ) ) : ( )} ); }; WorkspaceIntegrationsPage.getLayout = function getLayout(page: ReactElement) { return ( }> {page} ); }; export default WorkspaceIntegrationsPage;