content: import React from 'react';
  import { SegmentedControl } from 'elemental';
  
  const VALUE_OPTIONS = [
  	{ label: 'Is Checked', value: true },
  	{ label: 'Is NOT Checked', value: false },
  ];
  
  function getDefaultValue () {
  	return {
  		value: true,
  	};
  }
  
  var BooleanFilter = React.createClass({
  	propTypes: {
  		filter: React.PropTypes.shape({
  			value: React.PropTypes.bool,
  		}),
  	},
  	statics: {
  		getDefaultValue: getDefaultValue,
  	},
  	getDefaultProps () {
  		return {
  			filter: getDefaultValue(),
  		};
  	},
  	updateValue (value) {
  		this.props.onChange({ value });
  	},
  	render () {
  		return <SegmentedControl equalWidthSegments options={VALUE_OPTIONS} value={this.props.filter.value} onChange={this.updateValue} />;
  	},
  });
  
  module.exports = BooleanFilter;
  