import { Button } from "../UI/Button";
import { OrderDetailPanel } from "../orders/OrderDetailPanel";

export const DeliverySetDetailPanel = ({ deliverySet, onClose }) => {
  if (!deliverySet) {
    return null;
  }

  return (
    <div className="space-y-5">
      <OrderDetailPanel order={deliverySet} />

      {onClose ? (
        <div className="flex justify-end">
          <Button variant="ghost" onClick={onClose}>
            Закрыть
          </Button>
        </div>
      ) : null}
    </div>
  );
};
