From 65a67322815b7c415f0b7d2ac64b8d86fe484164 Mon Sep 17 00:00:00 2001 From: Vraja Das Date: Fri, 3 Jan 2025 14:18:48 +0200 Subject: [PATCH] implement conditional --- .../integrations-page/recommended-integrations.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/js/src/integrations-page/recommended-integrations.js b/packages/js/src/integrations-page/recommended-integrations.js index 7b27f56b203..4b4702494b8 100644 --- a/packages/js/src/integrations-page/recommended-integrations.js +++ b/packages/js/src/integrations-page/recommended-integrations.js @@ -62,7 +62,9 @@ const integrations = [ }, ]; -export const RecommendedIntegrations = [ +const isGoogleSiteKitFeatureEnabled = get( window, "wpseoIntegrationsData.google_site_kit.featureEnabled", false ); + +const RecommendedIntegrations = [ integrations.map( ( integration, index ) => { return ( ); } ), - , ]; + + +if( isGoogleSiteKitFeatureEnabled ) { + RecommendedIntegrations.push( ); +} + +export { RecommendedIntegrations }; \ No newline at end of file