"use strict"; import classNames from "classnames"; import PropTypes from "prop-types"; import createReactClass from "create-react-class"; var PT = PropTypes; var Panel = createReactClass({ //fixme! - class Panel extends React.Component { propTypes: { title:PT.object.isRequired, info:PT.object.isRequired, }, getInitialState: function() { return { open: true, }; }, toggleState: function(e) { this.setState({open: !this.state.open}); }, render: function() { var chevron = "glyphicon glyphicon-chevron-" + (this.state.open ? "down":"right"); return
  {this.props.title}
{this.props.info}
{ this.state.open ?
{this.props.children}
: false}
; } }); module.exports = Panel;