since3-portal/app/client/storage/page.tsx
2026-09-29 16:15:28 +02:00

20 lines
576 B
TypeScript

import { verifySession } from "@/lib/supabase/dal"
import { DocumentsPanel } from "@/modules/shared/ui/views/documents-panel"
type SearchParams = Promise<{ folder?: string | string[] }>
const StoragePage = async ({ searchParams }: { searchParams: SearchParams }) => {
const session = await verifySession()
const { folder } = await searchParams
return (
<DocumentsPanel
profileId={session.userId}
isAdmin={false}
basePath="/client/storage"
folderId={typeof folder === "string" ? folder : undefined}
/>
)
}
export default StoragePage