import { redirect } from 'next/navigation';

type Props = {
  params: Promise<{ id: string }>;
};

export default async function EditSalesPaymentReceiptPage({ params }: Props) {
  const { id } = await params;
  redirect(`/admin/sales/payment/received?editId=${encodeURIComponent(id)}`);
}
