import {
  CUSTOMER_GROUP_DETAIL_FIELDS
} from "./chunk-SPFLYPY6.js";
import {
  useCustomerGroup
} from "./chunk-II3CLUXA.js";

// src/pages/customer-groups/customer-group-detail/breadcrumb.tsx
import { jsx } from "react/jsx-runtime";
var CustomerGroupDetailBreadcrumb = (props) => {
  const { id } = props.params || {};
  const { customer_group } = useCustomerGroup(
    id,
    {
      fields: CUSTOMER_GROUP_DETAIL_FIELDS
    },
    {
      initialData: props.data,
      enabled: Boolean(id)
    }
  );
  if (!customer_group) {
    return null;
  }
  return /* @__PURE__ */ jsx("span", { children: customer_group.name });
};

export {
  CustomerGroupDetailBreadcrumb
};
