import {
  INVENTORY_DETAIL_FIELDS
} from "./chunk-ZEKV7LGF.js";
import {
  useInventoryItem
} from "./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/inventory/[id]/breadcrumb.tsx
import { jsx } from "react/jsx-runtime";
var Breadcrumb = (props) => {
  const { id } = props.params || {};
  const { inventory_item } = useInventoryItem(
    id,
    { fields: INVENTORY_DETAIL_FIELDS },
    { initialData: props.data, enabled: Boolean(id) }
  );
  if (!inventory_item) return null;
  return /* @__PURE__ */ jsx("span", { children: inventory_item.title ?? inventory_item.sku ?? id });
};
export {
  Breadcrumb
};
