'use client';
import * as React from 'react';
import { T as ThemeContext } from '../../../../@emotion/react/dist/emotion-element-489459f2.browser.development.esm.mjs';

function isObjectEmpty$1(obj) {
  return Object.keys(obj).length === 0;
}
function useTheme$3(defaultTheme = null) {
  const contextTheme = React.useContext(ThemeContext);
  return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme : contextTheme;
}

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