mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Cherry-picks #54282 and #54350 from master to be deployed during code freeze - these are changes that are related to the DB access tokens --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import {
|
|
PageSection,
|
|
PageSectionContent,
|
|
PageSectionDescription,
|
|
PageSectionMeta,
|
|
PageSectionSummary,
|
|
PageSectionTitle,
|
|
} from 'ui-patterns/PageSection'
|
|
|
|
import { ResetDbPassword } from './ResetDbPassword'
|
|
import { useIsJitDbAccessEnabled } from '@/components/interfaces/App/FeaturePreview/FeaturePreviewContext'
|
|
import { JitDbAccessConfiguration } from '@/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration'
|
|
|
|
export function DatabaseAccess() {
|
|
const isJitDbAccessEnabled = useIsJitDbAccessEnabled()
|
|
|
|
return (
|
|
<PageSection>
|
|
<PageSectionMeta>
|
|
<PageSectionSummary>
|
|
<PageSectionTitle>Database access</PageSectionTitle>
|
|
<PageSectionDescription>
|
|
Manage how members and apps connect to Postgres.
|
|
</PageSectionDescription>
|
|
</PageSectionSummary>
|
|
</PageSectionMeta>
|
|
<PageSectionContent className="space-y-4">
|
|
<ResetDbPassword />
|
|
{isJitDbAccessEnabled && <JitDbAccessConfiguration />}
|
|
</PageSectionContent>
|
|
</PageSection>
|
|
)
|
|
}
|