Files
supabase/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabWrapper.tsx
Joshen Lim ef6c47616f Bring Vault, Cron, Data API and GraphiQL integrations to the new UI (#44271)
## Context

Just brings more integrations over to the new UI bit by bit
- Vault
- Cron
- Data API
- GraphiQL

Will be tackling webhooks next which is a bit different as its not just
a database extension
2026-03-30 15:44:01 +08:00

23 lines
726 B
TypeScript

/**
* [Joshen] This is just to dynamically render either the V1 or V2 Overview tab based
* on the marketplace feature flag
*/
import { useFlag } from 'common'
import { PropsWithChildren } from 'react'
import { IntegrationOverviewTab, IntegrationOverviewTabProps } from './IntegrationOverviewTab'
import { IntegrationOverviewTabV2 } from './IntegrationOverviewTabV2'
export const IntegrationOverviewTabWrapper = (
props: PropsWithChildren<IntegrationOverviewTabProps>
) => {
const isMarketplaceEnabled = useFlag('marketplaceIntegrations')
if (isMarketplaceEnabled) {
return <IntegrationOverviewTabV2>{props.children}</IntegrationOverviewTabV2>
} else {
return <IntegrationOverviewTab {...props} />
}
}