import { h } from '../edel-elements.core.js';

class EdelNavigationBreadcrumbItemComponent {
    constructor() {
        this.isLink = false;
        this.link = null;
    }
    render() {
        return this.getRenderContent();
    }
    hostData() {
        return {
            class: 'breadcrumb-item'
        };
    }
    getRenderContent() {
        if (this.isLink)
            return (h("div", null,
                h("a", { href: this.link, class: "breadcrumb-anchor" },
                    h("slot", null)),
                h("span", { class: "breadcrumb-next" },
                    h("i", { class: "fa far fa-angle-double-right" }))));
        return (h("slot", null));
    }
    static get is() { return "edel-breadcrumb-item"; }
    static get properties() { return {
        "isLink": {
            "type": Boolean,
            "attr": "is-link"
        },
        "link": {
            "type": String,
            "attr": "link"
        }
    }; }
}

export { EdelNavigationBreadcrumbItemComponent as EdelBreadcrumbItem };
