import {
  DEFAULT_FIELDS
} from "./chunk-IMJ62GAP.js";
import {
  useOrder
} from "./chunk-DIAWPVYS.js";
import "./chunk-YAUGB4LD.js";
import "./chunk-A5DJIOHN.js";
import "./chunk-RHKRREUU.js";
import "./chunk-ZA2KFUFR.js";
import "./chunk-DTGEFKK4.js";
import "./chunk-NBMM2TZK.js";

// src/pages/orders/[id]/breadcrumb.tsx
import { jsxs } from "react/jsx-runtime";
var Breadcrumb = (props) => {
  const { id } = props.params || {};
  const { order } = useOrder(
    id,
    {
      fields: DEFAULT_FIELDS
    },
    {
      initialData: props.data,
      enabled: Boolean(id)
    }
  );
  if (!order) {
    return null;
  }
  return /* @__PURE__ */ jsxs("span", { children: [
    "#",
    order.display_id
  ] });
};
export {
  Breadcrumb
};
