import { Component } from 'react';
import HqTabBar from '../components/HqTabBar';

/** 小程序 custom-tab-bar 入口；H5 由各 Tab 页直接渲染 HqTabBar */
export default class CustomTabBar extends Component {
  state = { selected: 0 };

  setSelected(index: number) {
    this.setState({ selected: index });
  }

  render() {
    return <HqTabBar selected={this.state.selected} />;
  }
}
