import { ProcessedApprovalRecords } from "@/record-management/dto/approval/newApprovalRecordsDto";
import IncomingInstanceDetail from "../../userIncoming/IncomingInstanceDetail";

const MyApprovaRecordsActions = ({
  rowData,
  fromTable,
}: {
  rowData: ProcessedApprovalRecords;
  fromTable: boolean;
}) => {
  return (
    rowData?.statusKey === "Dispatched" && (
      <div className="flex items-center justify-center gap-2">
        <IncomingInstanceDetail
          instanceId={rowData?.id as string}
          instanceType={"outgoing"}
          rowData={rowData}
          fromTable={fromTable}
        />
      </div>
    )
  );
};

export default MyApprovaRecordsActions;
