'use strict'; var React = require('react'); var Dialog = require('rc-dialog'); function noop() { } var Modal = React.createClass({ getInitialState() { return { visible: false }; }, handleCancel() { var d = this.refs.d; d.requestClose(); }, getDefaultProps() { return { prefixCls: 'ant-modal', onOk: noop, onCancel: noop }; }, show() { this.setState({ visible: true }); }, hide() { this.setState({ visible: false }); }, handleOk() { this.props.onOk(); }, render() { var props = this.props; var footer = props.footer || [ , ]; return ; } }); module.exports = Modal;