diff options
Diffstat (limited to 'frontend/components/drive/DriveDirectoryView.tsx')
| -rw-r--r-- | frontend/components/drive/DriveDirectoryView.tsx | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/frontend/components/drive/DriveDirectoryView.tsx b/frontend/components/drive/DriveDirectoryView.tsx index 3558537..d2f30ee 100644 --- a/frontend/components/drive/DriveDirectoryView.tsx +++ b/frontend/components/drive/DriveDirectoryView.tsx | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | import { DriveLsEntry } from "@/lib/drive_types" | 1 | import { DriveLsEntry } from "@/lib/drive_types" |
| 2 | import { DriveDirectoryClient } from "./DriveDirectoryClient" | 2 | import { DriveDirectoryClient } from "./DriveDirectoryClient" |
| 3 | import { DriveHeader } from "./DriveHeader" | ||
| 3 | import type { StorageData } from "@/lib/storage" | 4 | import type { StorageData } from "@/lib/storage" |
| 5 | import { Auth_get_user } from "@/lib/auth" | ||
| 4 | 6 | ||
| 5 | interface DriveDirectoryViewProps { | 7 | interface DriveDirectoryViewProps { |
| 6 | path: string | 8 | path: string |
| @@ -43,16 +45,21 @@ function sortFiles(files: DriveLsEntry[]): DriveLsEntry[] { | |||
| 43 | }); | 45 | }); |
| 44 | } | 46 | } |
| 45 | 47 | ||
| 46 | export function DriveDirectoryView({ path, files, storageData }: DriveDirectoryViewProps) { | 48 | export async function DriveDirectoryView({ path, files, storageData }: DriveDirectoryViewProps) { |
| 47 | const sortedFiles = sortFiles(files) | 49 | const sortedFiles = sortFiles(files) |
| 48 | const breadcrumbs = generateBreadcrumbs(path) | 50 | const breadcrumbs = generateBreadcrumbs(path) |
| 51 | const user = await Auth_get_user() | ||
| 49 | 52 | ||
| 50 | return ( | 53 | return ( |
| 51 | <DriveDirectoryClient | 54 | <div className="container mx-auto p-6 space-y-6"> |
| 52 | path={path} | 55 | <DriveHeader /> |
| 53 | files={sortedFiles} | 56 | <DriveDirectoryClient |
| 54 | breadcrumbs={breadcrumbs} | 57 | path={path} |
| 55 | storageData={storageData} | 58 | files={sortedFiles} |
| 56 | /> | 59 | breadcrumbs={breadcrumbs} |
| 60 | storageData={storageData} | ||
| 61 | user={user} | ||
| 62 | /> | ||
| 63 | </div> | ||
| 57 | ) | 64 | ) |
| 58 | } \ No newline at end of file | 65 | } \ No newline at end of file |
