21 lines
565 B
TypeScript
21 lines
565 B
TypeScript
"use client"
|
|
|
|
import { useParams } from "next/navigation"
|
|
import { RichTextEditor } from "@/components/drive/richtext-editor"
|
|
import { isDriveFileIdSegment } from "@/lib/drive/drive-url"
|
|
|
|
export default function DriveDocsEditPage() {
|
|
const params = useParams()
|
|
const fileId = params.fileId as string
|
|
|
|
if (!isDriveFileIdSegment(fileId)) {
|
|
return (
|
|
<div className="flex h-dvh items-center justify-center p-8 text-sm text-muted-foreground">
|
|
Identifiant de document invalide
|
|
</div>
|
|
)
|
|
}
|
|
|
|
return <RichTextEditor fileId={fileId} />
|
|
}
|