class CustomSidebar extends HTMLElement { connectedCallback() { const currentFolder = this.getAttribute('currentFolder') || 'my-documents'; const onChangeFolder = this.getAttribute('onChangeFolder'); this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` `; // Initialize feather icons feather.replace(); } } customElements.define('custom-sidebar', CustomSidebar);