import { createClient } from "@/utils/supabase/server"; import { notFound } from "next/navigation"; import { updateAuthor } from "../../actions"; interface PageProps { params: Promise<{ name: string }>; } export default async function EditAuthorPage({ params }: PageProps) { const { name } = await params; const decodedName = decodeURIComponent(name); const supabase = await createClient(); const { data: author, error } = await supabase .from("authors") .select("name, bio, x_link, fb_link, insta_link, pfp_link") .eq("name", decodedName) .single(); if (error || !author) { notFound(); } return (