const id = "takker-scheduler-dashboard"; export const makeDashboard = (): HTMLDivElement => { const div_ = document.getElementById(id); if (div_ instanceof HTMLDivElement) return div_; const div = document.createElement("div"); div.id = id; const shadowRoot = div.attachShadow({ mode: "open" }); shadowRoot.innerHTML = `
`; document.body.append(div); return div; };