import { notFound } from "next/navigation"
import { Suspense } from "react"
import { formatDateTime } from "@/lib/datetime"
import { getRecord } from "@/lib/records"
import { RecordForm } from "../_components/RecordForm"
import { updateRecordAction } from "../actions"
export const metadata = { title: "编辑记录" }
export default function EditRecordPage({ params }: PageProps<"/records/[id]">) {
return (
编辑记录
{/* params are awaited inside Suspense so the shell can still be prerendered */}