Files
supabase/apps/studio/components/layouts/APIKeys/APIKeysLayout.tsx
Joshen Lim cea3232469 Joshenlim/fe 5166 refactor pagelayout for auth api pages (#53716)
## Context

Just some housekeeping to move off old layout components - this PR
targets Auth and Settings pages, specifically
- Auth -> Emails
- Auth -> Providers
- Settings -> API Keys
- Settings -> JWT Keys
- Settings -> Log Drains
- Settings -> Read Replica/id

The only visual change is just that navigation tabs take the full width
of the viewport now

Just need to make sure that these pages still render fine
2026-11-23 10:58:53 +07:00

37 lines
1.0 KiB
TypeScript

import { PropsWithChildren } from 'react'
import { PageContainer } from 'ui-patterns/PageContainer'
import {
PageHeader,
PageHeaderAside,
PageHeaderDescription,
PageHeaderMeta,
PageHeaderSummary,
PageHeaderTitle,
} from 'ui-patterns/PageHeader'
import { DocsButton } from '@/components/ui/DocsButton'
import { DOCS_URL } from '@/lib/constants'
const ApiKeysLayout = ({ children }: PropsWithChildren) => {
return (
<>
<PageHeader>
<PageHeaderMeta>
<PageHeaderSummary>
<PageHeaderTitle>API Keys</PageHeaderTitle>
<PageHeaderDescription>
Configure API keys to securely control access to your project
</PageHeaderDescription>
</PageHeaderSummary>
<PageHeaderAside>
<DocsButton href={`${DOCS_URL}/guides/api/api-keys`} />
</PageHeaderAside>
</PageHeaderMeta>
</PageHeader>
<PageContainer className="flex flex-col py-8 pb-16 gap-8">{children}</PageContainer>
</>
)
}
export default ApiKeysLayout