'use strict';

var A3CZKICO = require('./A3CZKICO.cjs');
var P7GR5CS5 = require('./P7GR5CS5.cjs');
var LMDWO4NN = require('./LMDWO4NN.cjs');
var _3YLGPPWQ = require('./3YLGPPWQ.cjs');
var PBFD2E7P = require('../../../../../../@ariakit_core@0.4.15/node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.cjs');

var TagName = "hr";
var useCompositeSeparator = LMDWO4NN.createHook(function useCompositeSeparator2(_a) {
  var _b = _a, { store } = _b, props = _3YLGPPWQ.__objRest(_b, ["store"]);
  const context = P7GR5CS5.useCompositeContext();
  store = store || context;
  PBFD2E7P.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 = A3CZKICO.useSeparator(_3YLGPPWQ.__spreadProps(_3YLGPPWQ.__spreadValues({}, props), { orientation }));
  return props;
});
LMDWO4NN.forwardRef(function CompositeSeparator2(props) {
  const htmlProps = useCompositeSeparator(props);
  return LMDWO4NN.createElement(TagName, htmlProps);
});

exports.useCompositeSeparator = useCompositeSeparator;
//# sourceMappingURL=TP7N7UIH.cjs.map
