added Station Add, Delete Update

This commit is contained in:
PxlLoewe
2025-02-16 17:53:55 +01:00
parent 883c47bdce
commit ac492b934f
20 changed files with 615 additions and 33 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} />;
};