"use client";

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

const DETAIL_CONFIG = {
  entityLabel: "Interest / dividend transaction",
  showActions: true,
} as const;

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