import React from 'react';
import Button from '../../../button/index.js';

var BackToLogin = function (_a) {
    var t = _a.t, _b = _a.language, language = _b === void 0 ? 'de' : _b;
    var logoutLink = "/seller-web/api/auth/logout";
    var vehicleManagementLink = "/".concat(language, "/vehicle-management");
    var loginLink = "/seller-web/api/auth/login?locale=".concat(language, "&returnTo=").concat(encodeURIComponent(vehicleManagementLink));
    var query = "?returnTo=".concat(encodeURIComponent(loginLink));
    var logoutBeforeLoginLink = "".concat(logoutLink).concat(query);
    return (React.createElement(Button, { as: "a", href: logoutBeforeLoginLink }, t('errorPage.backToLogin')));
};

export { BackToLogin as default };
//# sourceMappingURL=BackToLogin.js.map
