import { Component } from 'react'
import './app.scss'
import 'animate.css'
import 'taro-ui/dist/style/index.scss'

const isProd = process.env.NODE_ENV === 'production'

if (isProd) {
  try {
    const SDK = require('sr-sdk-h5').default
    if (typeof SDK === 'function') {
      window.srt = new SDK({
        token: 'bi72fccc7184ef45f9',
        debug: false,
        autoTrack: true,
        autoStart: true,
        appid: ''
      })
    }
  } catch (e) {
    console.warn('sr-sdk-h5 init skip:', e)
  }
}

class App extends Component {
  componentDidMount () {}
  componentDidShow () {}
  componentDidHide () {}

  render () {
    return this.props.children
  }
}

export default App
