mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 20:51:17 +00:00
20 lines
576 B
TypeScript
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
|