Files
Joshen LimandDanny White 6dda807c58 chore: cherry-pick #54282 and #54350 to release (#54459)
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>
2026-12-02 16:26:53 +07:00

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>
)
}