import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { ImportWizard } from "@/features/imports/components/import-wizard"; import { getImportDraft } from "@/features/imports/service"; import { tr } from "@/i18n/tr"; import { requireActiveHousehold } from "@/lib/dal"; export const metadata: Metadata = { title: tr.imports.title }; /** /islemler/ice-aktar/:id — aktarma taslağı ya da işlenmiş aktarma. */ export default async function ImportPage({ params }: PageProps<"/islemler/ice-aktar/[id]">) { const { user, household } = await requireActiveHousehold("member"); const { id } = await params; const draft = await getImportDraft(user.id, household.id, id); if (!draft) notFound(); return ; }