class CustomHeader extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
`;
// Initialize Feather icons in shadow DOM
const featherScript = document.createElement('script');
featherScript.src = "https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js";
featherScript.onload = () => {
if (this.shadowRoot) {
window.feather && window.feather.replace();
}
};
this.shadowRoot.appendChild(featherScript);
}
}
customElements.define('custom-header', CustomHeader);