index.tsx19 lines · main
| 1 | import { FilesBuckets } from '@/components/interfaces/Storage/FilesBuckets' |
| 2 | import DefaultLayout from '@/components/layouts/DefaultLayout' |
| 3 | import { StorageBucketsLayout } from '@/components/layouts/StorageLayout/StorageBucketsLayout' |
| 4 | import StorageLayout from '@/components/layouts/StorageLayout/StorageLayout' |
| 5 | import type { NextPageWithLayout } from '@/types' |
| 6 | |
| 7 | const StorageFilesPage: NextPageWithLayout = () => { |
| 8 | return <FilesBuckets /> |
| 9 | } |
| 10 | |
| 11 | StorageFilesPage.getLayout = (page) => ( |
| 12 | <DefaultLayout> |
| 13 | <StorageLayout title="Files"> |
| 14 | <StorageBucketsLayout>{page}</StorageBucketsLayout> |
| 15 | </StorageLayout> |
| 16 | </DefaultLayout> |
| 17 | ) |
| 18 | |
| 19 | export default StorageFilesPage |