mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
ef6c47616f
## 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
23 lines
726 B
TypeScript
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} />
|
|
}
|
|
}
|