StorageLayout.tsx 582 B

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