"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const react_2 = require("@storybook/react");
const addon_info_1 = require("@storybook/addon-info");
const index_1 = __importDefault(require("./index"));
class CustomLicense extends react_1.default.Component {
    constructor() {
        super(...arguments);
        this.state = {
            index: 0,
        };
    }
    render() {
        return (react_1.default.createElement(index_1.default, { currency: "AUD", tiersPricing: [
                { pricing: 0, currency: 'AUD' },
                { pricing: 25, currency: 'AUD' },
                { pricing: 100, currency: 'AUD' },
            ], onTierClick: (tier, pricing, index) => {
                console.log({ tier, pricing, index });
                this.setState({ index });
            }, selectedTierIndex: this.state.index }));
    }
}
react_2.storiesOf('License', module)
    .add('Default', addon_info_1.withInfo('Default License')(() => react_1.default.createElement(index_1.default, null)))
    .add('with Custom Pricing', addon_info_1.withInfo('with Custom Pricing')(() => react_1.default.createElement(CustomLicense, null)));
//# sourceMappingURL=index.story.js.map