var __read = (this && this.__read) || function (o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
};
import React, { useContext } from 'react';
import { useClassFor } from '../utils/classFor';
import { ThemedComponent } from '../commons/ThemedComponent';
import { ThemeContext } from '../themes/Theme';
var themes = ['default', 'jarvis', 'unilogin'];
export var ThemesPlayground = function () {
    var _a = __read(useContext(ThemeContext), 2), setTheme = _a[1];
    return (React.createElement(ThemedComponent, { name: "selector" },
        React.createElement("select", { className: "playground-theme-select", onChange: function (event) { return setTheme(event.target.value); } }, themes.map(function (theme) { return React.createElement("option", { key: theme }, theme); })),
        "Element: ",
        useClassFor('selector')));
};
//# sourceMappingURL=ThemesPlayground.js.map