import React, { useEffect, useState } from 'react'
import './index.scss'

export default props => {
  return (
    <view className={`no-data-wrapper ${props.className}`} style={props.style}>
      {
        props.nodata ? <view className="no-data-view">{props.tips || '暂无数据'}</view> : props.children
      }
    </view>
  )
}
