import {
  useStockLocation
} from "./chunk-O72AIZUN.js";

// src/pages/settings/locations/[location_id]/constants.ts
var LOCATION_DETAILS_FIELD = "name,*sales_channels,*address,fulfillment_sets.type,fulfillment_sets.name,*fulfillment_sets.service_zones.geo_zones,*fulfillment_sets.service_zones,*fulfillment_sets.service_zones.shipping_options,*fulfillment_sets.service_zones.shipping_options.rules,*fulfillment_sets.service_zones.shipping_options.shipping_profile,*fulfillment_providers";

// src/pages/settings/locations/[location_id]/breadcrumb.tsx
import { jsx } from "react/jsx-runtime";
var LocationDetailBreadcrumb = (props) => {
  const { location_id } = props.params || {};
  const { stock_location } = useStockLocation(
    location_id,
    {
      fields: LOCATION_DETAILS_FIELD
    },
    {
      initialData: props.data,
      enabled: Boolean(location_id)
    }
  );
  if (!stock_location) {
    return null;
  }
  return /* @__PURE__ */ jsx("span", { children: stock_location.name });
};

export {
  LOCATION_DETAILS_FIELD,
  LocationDetailBreadcrumb
};
