'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-7cdf1df1.js');

const DvnAppRouteLink = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.action = index.createEvent(this, "action", 7);
  }
  render() {
    return (index.h(index.Host, { onClick: () => {
        if (!this.url)
          return;
        this.action.emit({
          type: 'navigation',
          direction: 'forward',
          url: this.url,
          viewId: this.viewId,
        });
      }, style: { display: 'block' } }, index.h("slot", null)));
  }
};

exports.dvn_app_route_link = DvnAppRouteLink;
