StorageLayout.tsx24 lines · main
1import { ReactNode } from 'react'
2
3import { ProjectLayout } from '../ProjectLayout'
4import { StorageMenuV2 } from '@/components/interfaces/Storage/StorageMenuV2'
5import { withAuth } from '@/hooks/misc/withAuth'
6
7export interface StorageLayoutProps {
8 title: string
9 children: ReactNode
10}
11
12const 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
24export default withAuth(StorageLayout)