/**
 * Created by baoyinghai on 12/1/16.
 */
import React from 'react';
import { autobind } from 'core-decorators';
import { ArchorHref } from '../../../components/anchor';

export default class SwitchContainer extends React.Component {

  constructor(props) {
    super(props);
    this.state = {
      isVisible: true
    };
  }

  render() {
    return (
      <section className="detail-sec">
        <ArchorHref title={this.props.bar} href={'#title-' + this.props.index} />
        {this.props.children}
      </section>
    );
  }
}
