StorageLayout.tsx24 lines · main
| 1 | import { ReactNode } from 'react' |
| 2 | |
| 3 | import { ProjectLayout } from '../ProjectLayout' |
| 4 | import { StorageMenuV2 } from '@/components/interfaces/Storage/StorageMenuV2' |
| 5 | import { withAuth } from '@/hooks/misc/withAuth' |
| 6 | |
| 7 | export interface StorageLayoutProps { |
| 8 | title: string |
| 9 | children: ReactNode |
| 10 | } |
| 11 | |
| 12 | const StorageLayout = ({ title, children }: StorageLayoutProps) => { |
| 13 | return ( |
| 14 | <ProjectLayout |
| 15 | product="Storage" |
| 16 | browserTitle={{ section: title }} |
| 17 | productMenu={<StorageMenuV2 />} |
| 18 | > |
| 19 | {children} |
| 20 | </ProjectLayout> |
| 21 | ) |
| 22 | } |
| 23 | |
| 24 | export default withAuth(StorageLayout) |