mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 20:51:17 +00:00
20 lines
597 B
TypeScript
20 lines
597 B
TypeScript
import { Params } from "@/modules/shared/types/user"
|
|
import { DocumentsPanel } from "@/modules/shared/ui/views/documents-panel"
|
|
|
|
type SearchParams = Promise<{ folder?: string | string[] }>
|
|
|
|
const StorageAdminPage = async ({ params, searchParams }: { params: Params; searchParams: SearchParams }) => {
|
|
const { id } = await params
|
|
const { folder } = await searchParams
|
|
|
|
return (
|
|
<DocumentsPanel
|
|
profileId={id}
|
|
isAdmin
|
|
basePath={`/admin/clients/${id}/storage`}
|
|
folderId={typeof folder === "string" ? folder : undefined}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default StorageAdminPage
|