Show greyed non-interactive messenger cards with a Coming soon badge (matching integration card chrome, no expandable controls), and refresh third-party statuses immediately after Apply & Restart clears pending plugin restarts. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
32 lines
1001 B
TypeScript
32 lines
1001 B
TypeScript
import React from 'react';
|
|
import { SettingsPageLayout } from '@/components/sections/shared/SettingsPageLayout';
|
|
import { useI18n } from '@/lib/i18n';
|
|
import { ComingSoonMessengersSection } from './ComingSoonMessengersSection';
|
|
import { ThirdPartyIntegrationsSection } from './ThirdPartyIntegrationsSection';
|
|
|
|
interface IntegrationsPageProps {
|
|
onOpenProviderSetup: (providerId: string) => Promise<boolean>;
|
|
onOpenPluginManager: () => void;
|
|
}
|
|
|
|
export const IntegrationsPage: React.FC<IntegrationsPageProps> = ({
|
|
onOpenProviderSetup,
|
|
onOpenPluginManager,
|
|
}) => {
|
|
const { t } = useI18n();
|
|
|
|
return (
|
|
<SettingsPageLayout
|
|
title={t('settings.page.integrations.title')}
|
|
description={t('settings.page.integrations.description')}
|
|
showSaveStatus={false}
|
|
>
|
|
<ComingSoonMessengersSection />
|
|
<ThirdPartyIntegrationsSection
|
|
onOpenProviderSetup={onOpenProviderSetup}
|
|
onOpenPluginManager={onOpenPluginManager}
|
|
/>
|
|
</SettingsPageLayout>
|
|
);
|
|
};
|