import '../../../preact/compat/dist/compat.module.mjs';
import { createContext as F } from '../../../preact/dist/preact.module.mjs';
import { useContext as q } from '../../../preact/hooks/dist/hooks.module.mjs';

// packages/react/direction/src/direction.tsx
var DirectionContext = F(void 0);
function useDirection(localDir) {
  const globalDir = q(DirectionContext);
  return localDir || globalDir || "ltr";
}

export { useDirection };
//# sourceMappingURL=index.mjs.map
