/**
 * h5头部组件
 */

import Taro, { Component, Config } from '@tarojs/taro';
import { ComponentClass } from 'react';
import { View } from '@tarojs/components';

import Header from './../../components/header/header'
import { IPageState, IProps, IPageOwnProps } from './header.itf'
import './header.scss';

/**
 * 类的属性
 */
interface Index {
  props: IProps;
  // this的属性可以在这里定义
}

class Index extends Component {
  config: Config = {
    navigationBarTitleText: 'h5头部组件'
  };

  state: IPageState = {};

  componentDidMount() {}

  componentDidShow() {}

  render() {
    return (
      <View className='header-page'>
        <Header pageTitle='头部组件' visible />
      </View>
    );
  }
}
export default Index as ComponentClass<IPageOwnProps, IPageState>;

