5793490cb4
Yükleme ve geçmiş, hesap kurulumu, kontroller, düzenlenebilir önizleme (süzgeçler, sayfalama, Kakeibo grubu) ve işleme / geri alma ekranı; İşlemler sayfasına "İçe aktar" girişi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
812 B
TypeScript
18 lines
812 B
TypeScript
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 <ImportWizard key={`${draft.id}-${draft.status}`} draft={draft} />;
|
|
}
|