import React from 'react'; import { NavContext } from '../contexts/NavContext'; export interface IonRouteProps { path?: string; exact?: boolean; show?: boolean; render: (props?: any) => JSX.Element; // TODO(FW-2959): type disableIonPageManagement?: boolean; } // eslint-disable-next-line @typescript-eslint/no-empty-interface interface IonRouteState {} export class IonRoute extends React.PureComponent { context!: React.ContextType; render() { const IonRouteInner = this.context.getIonRoute(); if (!this.context.hasIonicRouter() || !IonRoute) { console.error('You either do not have an Ionic Router package, or your router does not support using '); return null; } return ; } static get contextType() { return NavContext; } }