import { getAppById, updateApp } from "../../actions"; import { ArrowLeft, Save, Smartphone, Globe } from "lucide-react"; import Link from "next/link"; import { notFound } from "next/navigation"; export default async function EditAppPage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; const appId = parseInt(id); if (isNaN(appId)) { notFound(); } const app = await getAppById(appId); if (!app) { notFound(); } const updateAppWithId = updateApp.bind(null, app.id); return (

Uygulamayı Düzenle

{app.name} / {app.bundleId}

); }