function createContentStyles({ STYLE_ID, enableDialogDrag, redwoodStyles, environment }) { const { document } = environment; function ensureExtensionStyles() { enableDialogDrag?.(); if (document.getElementById(STYLE_ID)) { return; } const style = document.createElement("style"); style.id = STYLE_ID; style.textContent = redwoodStyles; document.head.append(style); } return { ensureExtensionStyles }; }