var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import React from 'react';
import { Tabs, Tab } from '@material-ui/core';
import { withStyles } from '@signatu/styles';
export var consentContent = {
    'no': React.createElement("div", null, "ACME Inc. kan sende meg ukentlige personaliserte e-poster med det form\u00E5l \u00E5 tilby meg produkter og tjenester."),
    'en': React.createElement("div", null, "ACME Inc. can send me weekly personalized emails for the purpose of offering me relevant products and services.")
};
var styles = function (theme) { return ({
    root: {
        fontFamily: theme.typography.fontFamily,
        fontSize: theme.typography.fontSize,
        fontWeight: theme.typography.fontWeight
    }
}); };
var DemoCard = /** @class */ (function (_super) {
    __extends(DemoCard, _super);
    function DemoCard(props) {
        var _this = _super.call(this, props) || this;
        _this.state = {
            selectedTab: 0
        };
        return _this;
    }
    DemoCard.prototype.render = function () {
        var _this = this;
        var selectedTab = this.state.selectedTab;
        var _a = this.props, element = _a.element, doc = _a.doc, classes = _a.classes;
        return React.createElement("div", { className: classes.root },
            React.createElement(Tabs, { value: selectedTab, onChange: function (event, value) { return _this.setState({ selectedTab: value }); } },
                React.createElement(Tab, { label: "Demo" }),
                React.createElement(Tab, { label: "Code" })),
            React.createElement("div", { style: { marginTop: "4em" } },
                selectedTab === 0 && element,
                selectedTab === 1 && doc));
    };
    return DemoCard;
}(React.Component));
var styled = withStyles(styles)(DemoCard);
export { styled as DemoCard };
//# sourceMappingURL=common.js.map