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