import '../../../preact/compat/dist/compat.module.mjs';
import ThemeContext from './ThemeContext.mjs';
import { useContext as q, useDebugValue as x } from '../../../preact/hooks/dist/hooks.module.mjs';

function useTheme$1() {
  const theme = q(ThemeContext);
  {
    // TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler
    // eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production
    x(theme);
  }
  return theme;
}

export { useTheme$1 as default };
//# sourceMappingURL=useTheme.mjs.map
