import template from "./template.js"; import { notesSansLoaded } from "../../fonts/index.js"; import { getShadowRoot } from "../../utils/get-shadow-root.js"; declare global { export namespace JSX { export interface IntrinsicElements { "cookies-breadcrumbs": {}; } } } const templateNode: HTMLTemplateElement = document.createElement("template"); templateNode.innerHTML = template; export class Breadcrumbs extends HTMLElement { async connectedCallback() { await notesSansLoaded; this.attachShadow({ mode: "open" }); const shadowRoot = getShadowRoot(this); shadowRoot.appendChild(templateNode.content.cloneNode(true)); } }