const widget = {
  metadata: {
    id: "shipping_carriers.injection.create-shipment-button",
    priority: 30
  },
  rowActions: [
    {
      id: "create_shipment",
      label: "shipping_carriers.action.createShipment",
      icon: "Truck",
      onSelect: (row, context) => {
        const ctx = context;
        const order = row;
        if (ctx.navigate && order.id) {
          ctx.navigate(`/backend/shipping-carriers/create?orderId=${order.id}`);
        }
      }
    }
  ]
};
var widget_default = widget;
export {
  widget_default as default
};
//# sourceMappingURL=widget.js.map
