"use strict";
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;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("@storybook/react");
var React = __importStar(require("react"));
var apollo_storybook_react_1 = __importDefault(require("apollo-storybook-react"));
var __1 = require("../");
var storybook_react_router_1 = __importDefault(require("storybook-react-router"));
var typeDefs = "\n  type User {\n    uid: String\n    email: String\n    ethAddress: String\n  }\n\n  type Query {\n    currentUser: User\n  }\n\n  type Mutation {\n\n    setAvatarMutation(\n      channelID: String\n      avatarDataURL: String\n    ): String\n\n    skipSetAvatarMutation(\n      hasSeen: Boolean!\n    ): String\n\n  }\n\n  schema {\n    query: Query\n    mutation: Mutation\n  }\n";
var mocks = {
    Query: function () {
        return {
            currentUser: function () {
                return "cool";
            },
        };
    },
    Mutation: function () {
        return {
            setAvatarMutation: function (channelID, avatarDataURL) {
                return "ok";
            },
            skipSetAvatarMutation: function (hasSeen) {
                return "ok";
            },
        };
    },
};
react_1.storiesOf("Common / Web3Auth", module)
    .addDecorator(apollo_storybook_react_1.default({
    typeDefs: typeDefs,
    mocks: mocks,
}))
    .addDecorator(storybook_react_router_1.default())
    .add("UserSetAvatar", function () {
    return (React.createElement(__1.UserSetAvatar, { channelID: "", onSetAvatarComplete: function () {
            console.log("Sent");
        } }));
});
//# sourceMappingURL=UserSetAvatar.stories.js.map