"use client";

import PoWorkbenchDetailsGridQtyUnitBlock from "@/components/PoWorkbench/detailsGrid/PoWorkbenchDetailsGridQtyUnitBlock";
import type { PoWorkbenchDetailsGridLineRow } from "@/components/PoWorkbench/types";

interface PoWorkbenchDetailsGridExpectedQtyCellProps {
  row: PoWorkbenchDetailsGridLineRow;
}

/** Expected qty column: large centered qty + purchase-unit badge. */
export default function PoWorkbenchDetailsGridExpectedQtyCell({
  row,
}: PoWorkbenchDetailsGridExpectedQtyCellProps) {
  return (
    <PoWorkbenchDetailsGridQtyUnitBlock
      qty={row.expectedQty}
      unitLabel={row.purchaseUnitLabel}
    />
  );
}
