addons.tsx35 lines · main
| 1 | import { |
| 2 | PageHeader, |
| 3 | PageHeaderDescription, |
| 4 | PageHeaderMeta, |
| 5 | PageHeaderSummary, |
| 6 | PageHeaderTitle, |
| 7 | } from 'ui-patterns/PageHeader' |
| 8 | |
| 9 | import { Addons } from '@/components/interfaces/Settings/Addons/Addons' |
| 10 | import DefaultLayout from '@/components/layouts/DefaultLayout' |
| 11 | import SettingsLayout from '@/components/layouts/ProjectSettingsLayout/SettingsLayout' |
| 12 | import type { NextPageWithLayout } from '@/types' |
| 13 | |
| 14 | const ProjectAddons: NextPageWithLayout = () => { |
| 15 | return ( |
| 16 | <> |
| 17 | <PageHeader size="default"> |
| 18 | <PageHeaderMeta> |
| 19 | <PageHeaderSummary> |
| 20 | <PageHeaderTitle>Add-ons</PageHeaderTitle> |
| 21 | <PageHeaderDescription>Level up your project with add-ons</PageHeaderDescription> |
| 22 | </PageHeaderSummary> |
| 23 | </PageHeaderMeta> |
| 24 | </PageHeader> |
| 25 | <Addons /> |
| 26 | </> |
| 27 | ) |
| 28 | } |
| 29 | |
| 30 | ProjectAddons.getLayout = (page) => ( |
| 31 | <DefaultLayout> |
| 32 | <SettingsLayout title="add-ons">{page}</SettingsLayout> |
| 33 | </DefaultLayout> |
| 34 | ) |
| 35 | export default ProjectAddons |