"use client";
import { useSeparator } from './A3CZKICO.js';
import { useCompositeContext } from './P7GR5CS5.js';
import { createHook, forwardRef as forwardRef2, createElement } from './LMDWO4NN.js';
import { __objRest, __spreadProps, __spreadValues } from './3YLGPPWQ.js';
import { invariant } from '../../../../../../@ariakit_core@0.4.15/node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.js';

var TagName = "hr";
var useCompositeSeparator = createHook(function useCompositeSeparator2(_a) {
  var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
  const context = useCompositeContext();
  store = store || context;
  invariant(
    store,
    process.env.NODE_ENV !== "production" && "CompositeSeparator must be wrapped in a Composite component."
  );
  const orientation = store.useState(
    (state) => state.orientation === "horizontal" ? "vertical" : "horizontal"
  );
  props = useSeparator(__spreadProps(__spreadValues({}, props), { orientation }));
  return props;
});
forwardRef2(function CompositeSeparator2(props) {
  const htmlProps = useCompositeSeparator(props);
  return createElement(TagName, htmlProps);
});

export { useCompositeSeparator };
//# sourceMappingURL=TP7N7UIH.js.map
