"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MenuPicker = void 0;
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./MenuPicker.desktop"), exports);
const React = tslib_1.__importStar(require("react"));
const react_native_1 = require("react-native");
const MenuPicker = (props) => {
    const { prompt, onChange, collection } = props;
    return (React.createElement(react_native_1.View, { style: menuPickerStyles.container },
        React.createElement(react_native_1.Text, { style: menuPickerStyles.prompt }, prompt),
        collection.map((item, index) => (React.createElement(react_native_1.Button, { onPress: () => onChange(item.value, index), key: index, title: item.label })))));
};
exports.MenuPicker = MenuPicker;
const menuPickerStyles = react_native_1.StyleSheet.create({
    container: {
        flexDirection: 'row',
        flexWrap: 'wrap',
        alignItems: 'center',
        margin: 5,
    },
    prompt: {
        marginRight: 5,
    },
    chevronContainer: {
        padding: 4,
    },
});
//# sourceMappingURL=MenuPicker.windows.js.map