mirror of
https://github.com/supabase/supabase.git
synced 2026-05-09 18:30:12 -04:00
4a0bb36ca8
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
25 lines
582 B
TypeScript
25 lines
582 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
import { ProjectLayout } from '../ProjectLayout'
|
|
import { StorageMenuV2 } from '@/components/interfaces/Storage/StorageMenuV2'
|
|
import { withAuth } from '@/hooks/misc/withAuth'
|
|
|
|
export interface StorageLayoutProps {
|
|
title: string
|
|
children: ReactNode
|
|
}
|
|
|
|
const StorageLayout = ({ title, children }: StorageLayoutProps) => {
|
|
return (
|
|
<ProjectLayout
|
|
product="Storage"
|
|
browserTitle={{ section: title }}
|
|
productMenu={<StorageMenuV2 />}
|
|
>
|
|
{children}
|
|
</ProjectLayout>
|
|
)
|
|
}
|
|
|
|
export default withAuth(StorageLayout)
|