import '../../../preact/compat/dist/compat.module.mjs';
import defaultTheme from './defaultTheme.mjs';
import THEME_ID from './identifier.mjs';
import useTheme$1 from '../../system/esm/useTheme/useTheme.mjs';
import { useDebugValue as x } from '../../../preact/hooks/dist/hooks.module.mjs';

function useTheme() {
  const theme = useTheme$1(defaultTheme);
  {
    // 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
    x(theme);
  }
  return theme[THEME_ID] || theme;
}

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