// packages/rich-text/src/component/use-default-style.js
import { useCallback } from "@wordpress/element";
var whiteSpace = "pre-wrap";
var minWidth = "1px";
function useDefaultStyle() {
  return useCallback((element) => {
    if (!element) {
      return;
    }
    element.style.whiteSpace = whiteSpace;
    element.style.minWidth = minWidth;
  }, []);
}
export {
  useDefaultStyle
};
//# sourceMappingURL=use-default-style.mjs.map
