// Export all from wp.element
const element = window.wp?.element || {};

export const {
  createElement,
  Component,
  Fragment,
  createContext,
  forwardRef,
  lazy,
  memo,
  StrictMode,
  Suspense,
  useState,
  useEffect,
  useContext,
  useReducer,
  useCallback,
  useMemo,
  useRef,
  useImperativeHandle,
  useLayoutEffect,
  useDebugValue,
  Children,
  isValidElement,
  cloneElement,
  createPortal,
  findDOMNode,
  render,
  hydrate,
  unmountComponentAtNode,
  createRoot,
  hydrateRoot
} = element;

export default element;
