"use client"

import { useParams, useSearchParams } from "next/navigation"
import { OfficeEditor } from "@/components/drive/office-editor"

export default function DriveEditPage() {
  const params = useParams()
  const searchParams = useSearchParams()
  const filePath = decodeURIComponent(params.fileId as string)
  const returnTo = searchParams.get("returnTo")
  return <OfficeEditor filePath={filePath} returnTo={returnTo} />
}
