import '../../../../preact/compat/dist/compat.module.mjs';
import { jsx as u } from '../../../../preact/jsx-runtime/dist/jsxRuntime.module.mjs';
import { useContext as q } from '../../../../preact/hooks/dist/hooks.module.mjs';
import { createContext as F } from '../../../../preact/dist/preact.module.mjs';

const RtlContext = /*#__PURE__*/F();
function RtlProvider({
  value,
  ...props
}) {
  return /*#__PURE__*/u(RtlContext.Provider, {
    value: value ?? true,
    ...props
  });
}
const useRtl = () => {
  const value = q(RtlContext);
  return value ?? false;
};

export { RtlProvider as default, useRtl };
//# sourceMappingURL=index.mjs.map
