policies.tsx19 lines · main
| 1 | import { StoragePolicies } from '@/components/interfaces/Storage/StoragePolicies/StoragePolicies' |
| 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 FilesPoliciesPage: NextPageWithLayout = () => { |
| 8 | return <StoragePolicies /> |
| 9 | } |
| 10 | |
| 11 | FilesPoliciesPage.getLayout = (page) => ( |
| 12 | <DefaultLayout> |
| 13 | <StorageLayout title="Policies"> |
| 14 | <StorageBucketsLayout>{page}</StorageBucketsLayout> |
| 15 | </StorageLayout> |
| 16 | </DefaultLayout> |
| 17 | ) |
| 18 | |
| 19 | export default FilesPoliciesPage |