import { r as registerInstance, h, H as Host, f as getElement } from './core-d8726c22.js';
import { n as navLink } from './nav-link-utils-7601dc1b.js';

const NavPush = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.push = () => {
            return navLink(this.el, 'forward', this.component, this.componentProps);
        };
    }
    componentDidLoad() {
        console.warn('[DEPRECATED][ion-nav-push] `<ion-nav-push component="MyComponent">` is deprecated. Use `<ion-nav-link component="MyComponent">` instead.');
    }
    render() {
        return (h(Host, { onClick: this.push }));
    }
    get el() { return getElement(this); }
};

export { NavPush as ion_nav_push };
