"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const core_1 = require("@bluebase/core");
const components_1 = require("@bluebase/components");
const react_1 = tslib_1.__importDefault(require("react"));
class DirectionPicker extends react_1.default.PureComponent {
    render() {
        const BB = this.context;
        return (react_1.default.createElement(core_1.IntlContext.Consumer, null, ({ changeDirection }) => (react_1.default.createElement(components_1.Picker, { selectedValue: BB.Configs.getValue('direction'), style: { width: 150 }, onValueChange: changeDirection },
            react_1.default.createElement(components_1.Picker.Item, { label: "Auto", value: "auto" }),
            react_1.default.createElement(components_1.Picker.Item, { label: "Left to Right", value: "ltr" }),
            react_1.default.createElement(components_1.Picker.Item, { label: "Right to Left", value: "rtl" })))));
    }
}
DirectionPicker.contextType = core_1.BlueBaseContext;
exports.DirectionPicker = DirectionPicker;
