"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultPage = void 0;
const react_1 = __importDefault(require("react"));
const polymesh_ui_1 = require("@polymathnetwork/polymesh-ui");
const hardRedirect_1 = require("../../utils/hardRedirect");
exports.DefaultPage = ({ appName, mainPath, body }) => {
    const connect = () => {
        hardRedirect_1.hardRedirect(mainPath);
    };
    return (react_1.default.createElement(polymesh_ui_1.Flex, { alignItems: "flex-start", flexDirection: "column", p: "4" },
        react_1.default.createElement(polymesh_ui_1.Heading, { variant: "h4", color: "brandMain", mb: "l" }, appName),
        react_1.default.createElement(polymesh_ui_1.Text, { variant: "b2m", color: "gray.1" }, body),
        react_1.default.createElement(polymesh_ui_1.Box, { mt: "l" },
            react_1.default.createElement(polymesh_ui_1.Tooltip, { content: mainPath },
                react_1.default.createElement(polymesh_ui_1.Button, { onClick: connect }, "Go to main path")))));
};
//# sourceMappingURL=DefaultPage.js.map