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