Files
var-monorepo/apps/hub/app/(app)/admin/event/[id]/page.tsx
2025-02-16 23:17:05 +01:00

14 lines
396 B
TypeScript

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} />;
};