/* eslint-disable no-console */ import { PureComponent } from 'react'; import SegmentedControl from '../'; import SimplifiedSegmentedControl from '../simplified'; class SegmentedControlDemo extends PureComponent { static displayName = 'SegmentedControl'; static defaultProps = { options: [ { value: 'all', label: 'All' }, { value: 'unread', label: 'Unread' }, { value: 'comments', label: 'Comments' }, { value: 'follows', label: 'Follows' }, { value: 'likes', label: 'Likes' }, ], }; state = { childSelected: 'all', compact: false, }; toggleCompact = () => { this.setState( { compact: ! this.state.compact } ); }; render() { const controlDemoStyles = { maxWidth: 386 }; return (