import { Component, PropsWithChildren } from 'react'
import './app.scss'
import './context/locales/index'
import { Provider } from 'react-redux'
import store from './store/store'
import { View } from '@tarojs/components'

// import 'taro-ui/dist/style/index.scss'


const App: React.FC<PropsWithChildren> = ({ children }) => {
  return <Provider store={store}>{children}</Provider>
  // return <View>
  //   <Provider store={store}>
  //     <View style={{ position: 'relative' }}>
  //       {children}
  //       <View style={{ position: 'absolute', left: 0, bottom: 0, width: 100, height: 100, backgroundColor: 'red',zIndex:10000 }}></View>
  //     </View>
  //   </Provider>

  // </View>
}
// class App extends Component<PropsWithChildren> {

//   componentDidMount () {}

//   componentDidShow () {}

//   componentDidHide () {}

//   // this.props.children 是将要会渲染的页面
//   render () {
//     return this.props.children
//   }
// }
export default App
