export class EdelVersionComponent {
    constructor() {
        this.version = '';
    }
    render() {
        return h("span", { class: "is-number is-disabled" }, this.version);
    }
    componentDidLoad() {
        fetch(`${this.host}/api/v1/versions`)
            .then(res => res.json())
            .then(json => (this.version = json.main));
    }
    static get is() { return "edel-version"; }
    static get properties() { return {
        "host": {
            "type": String,
            "attr": "host"
        },
        "version": {
            "state": true
        }
    }; }
}
