legacy.tsx25 lines · main
1import ApiKeysLayout from '@/components/layouts/APIKeys/APIKeysLayout'
2import DefaultLayout from '@/components/layouts/DefaultLayout'
3import SettingsLayout from '@/components/layouts/ProjectSettingsLayout/SettingsLayout'
4import { DisplayApiSettings } from '@/components/ui/ProjectSettings/DisplayApiSettings'
5import { ToggleLegacyApiKeysPanel } from '@/components/ui/ProjectSettings/ToggleLegacyApiKeys'
6import type { NextPageWithLayout } from '@/types'
7
8const ApiKeysLegacyPage: NextPageWithLayout = () => {
9 return (
10 <>
11 <DisplayApiSettings showTitle={false} showNotice={false} />
12 <ToggleLegacyApiKeysPanel />
13 </>
14 )
15}
16
17ApiKeysLegacyPage.getLayout = (page) => (
18 <DefaultLayout>
19 <SettingsLayout title="api keys (legacy)">
20 <ApiKeysLayout>{page}</ApiKeysLayout>
21 </SettingsLayout>
22 </DefaultLayout>
23)
24
25export default ApiKeysLegacyPage