import React from 'react';
import { MenuItem } from '@material-ui/core';
import { BaseTextPropertyWidget } from './TextPropertyWidget';
/**
 * `boolean` property widget
 *
 * Outputs a select TextField with true/false as options
 */
const BooleanPropertyWidget = props => {
    const { initialData } = props;
    return (React.createElement(BaseTextPropertyWidget, Object.assign({ initialValue: initialData, select: true }, props), React.createElement(MenuItem, { value: '' }, "None"), React.createElement(MenuItem, { value: true }, "True"), React.createElement(MenuItem, { value: false }, "False")));
};
export default BooleanPropertyWidget;
//# sourceMappingURL=BooleanPropertyWidget.js.map