import '../../../preact/compat/dist/compat.module.mjs';
import { Global } from '../../../@emotion/react/dist/emotion-react.browser.esm.mjs';
import { jsx as u } from '../../../preact/jsx-runtime/dist/jsxRuntime.module.mjs';

function isEmpty$2(obj) {
  return obj === undefined || obj === null || Object.keys(obj).length === 0;
}
function GlobalStyles$2(props) {
  const {
    styles,
    defaultTheme = {}
  } = props;
  const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$2(themeInput) ? defaultTheme : themeInput) : styles;
  return /*#__PURE__*/u(Global, {
    styles: globalStyles
  });
}

export { GlobalStyles$2 as default };
//# sourceMappingURL=GlobalStyles.mjs.map
