class CustomSidebar extends HTMLElement { connectedCallback() { const currentPage = this.getAttribute('current-page') || 'dashboard'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` `; } } customElements.define('custom-sidebar', CustomSidebar);