"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("@storybook/react");
var storybook_react_router_1 = __importDefault(require("storybook-react-router"));
var React = __importStar(require("react"));
var NavBar_1 = require("./NavBar");
var NavErrorBar_1 = require("./NavErrorBar");
var context_1 = require("../context");
var web3_1 = __importDefault(require("web3"));
var web3_providers_http_1 = __importDefault(require("web3-providers-http"));
var balance = "100,203";
var votingBalance = "1,200";
var userAccount = "0xd26114cd6ee289accf82350c8d8487fedb8a0c07";
var userRevealVotesCount = 10;
var userClaimRewardsCount = 4;
var userChallengesStartedCount = 2;
var userChallengesVotedOnCount = 15;
var web3Provider = new web3_providers_http_1.default("http://localhost:8045");
var web3 = new web3_1.default(web3Provider);
var civilContext = context_1.buildCivilContext({ web3: web3, featureFlags: ["uniswap"], config: { DEFAULT_ETHEREUM_NETWORK: 4 } });
react_1.storiesOf("Common / Nav / Nav Bar", module)
    .addDecorator(storybook_react_router_1.default())
    .add("Global Nav", function () {
    return (React.createElement(context_1.CivilContext.Provider, { value: civilContext },
        React.createElement(NavBar_1.NavBar, { balance: balance, votingBalance: votingBalance, userEthAddress: userAccount, authenticationURL: "#auth", userRevealVotesCount: userRevealVotesCount, userClaimRewardsCount: userClaimRewardsCount, userChallengesStartedCount: userChallengesStartedCount, userChallengesVotedOnCount: userChallengesVotedOnCount, joinAsMemberUrl: "#buy-tokens", buyCvlUrl: "#become-member", applyURL: "#apply", useGraphQL: false, onLogoutPressed: function () {
                console.log("onLogoutPressed");
            }, onLoginPressed: function () {
                console.log("onLoginPressed");
            }, onSignupPressed: function () {
                console.log("onSignupPressed");
            }, onModalDefocussed: function () {
                console.log("onModalDefocussed");
            }, onViewDashboardPressed: function () {
                console.log("onViewDashboardPressed");
            } })));
})
    .add("Nav Error Bar", function () {
    return React.createElement(NavErrorBar_1.NavErrorBar, null);
});
//# sourceMappingURL=NavBar.stories.js.map