"use client";

import { TransactionDetailSheet } from "@/components/customer/transaction-detail-sheet";
import type { FxAccumulatorRow } from "./schema";

const DETAIL_CONFIG = {
  entityLabel: "FX accumulator transaction",
  showActions: false,
} as const;

export function FxAccumulatorDetailSheet(props: {
  row: FxAccumulatorRow | null;
  open: boolean;
  onOpenChange: (open: boolean) => void;
  onEdit: (row: FxAccumulatorRow) => void;
  onDelete: (row: FxAccumulatorRow) => void;
}) {
  return <TransactionDetailSheet {...props} config={DETAIL_CONFIG} />;
}
