"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const ModalNavigator_1 = require("./ModalNavigator");
const react_1 = tslib_1.__importDefault(require("react"));
exports.StackNavigator = (props) => {
    const { mode, children } = props;
    if (mode === 'modal') {
        return react_1.default.createElement(ModalNavigator_1.ModalNavigator, Object.assign({}, props));
    }
    return children;
};
exports.StackNavigator.displayName = 'StackNavigator';
