keyword admin page

This commit is contained in:
PxlLoewe
2025-03-26 00:12:22 -07:00
parent 2b1fd83a97
commit 9551202370
9 changed files with 361 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { prisma } from '@repo/db';
import { StationForm } from '../_components/Form';
export default async ({ params }: { params: Promise<{ id: string }> }) => {
const { id } = await params;
const station = await prisma.station.findUnique({
where: {
id: parseInt(id),
},
});
if (!station) return <div>Station not found</div>;
return <StationForm station={station} />;
};