import { DriveDirectoryView } from "@/components/drive/DriveDirectoryView"
import { Drive_ls } from "@/lib/drive_server"
import { fetchStorageData } from "@/lib/storage"

export default async function DriveRootPage() {
  const [files, storageData] = await Promise.all([
    Drive_ls("/", false),
    fetchStorageData()
  ])
  
  return <DriveDirectoryView path="/" files={files} storageData={storageData} />
}