import React from 'react';
import { MenuItem } from '@material-ui/core';
import { BaseTextPropertyWidget } from './TextPropertyWidget';
/**
 * `select` property widget
 *
 * Outputs a select TextField
 */
const SelectPropertyWidget = props => {
    const { property } = props;
    const { options } = property;
    return (React.createElement(BaseTextPropertyWidget, Object.assign({ select: true }, props), options.map(option => (React.createElement(MenuItem, { key: option.value, value: option.value }, option.label)))));
};
export default SelectPropertyWidget;
//# sourceMappingURL=SelectPropertyWidget.js.map