"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var errors_1 = require("../core/utils/errors");
exports.getInitialOnboardingLocation = function (state) {
    switch (state.kind) {
        case 'None':
            return '/selector';
        case 'Connecting':
            return {
                pathname: '/connectFlow/emoji',
                state: { name: state.wallet.name },
            };
        case 'Future':
        case 'Deploying':
            return '/create';
        case 'Deployed':
            throw new errors_1.UnexpectedWalletState('Deployed');
    }
};
//# sourceMappingURL=getInitialOnboardingLocation.js.map