import { View } from "@tarojs/components";
interface IProps {
  type: 'plane'|'search'|'chat' | 'box' | 'whiteboard' | (string & {}),
  text?: string,
  children?: JSX.Element|JSX.Element[]
}
export default ({type, text = '暂无数据', children}: IProps)=> {
  return (
    <View className="flex flex-col items-center">
      <View className={`data-empty data-empty${type}`}></View>
      {children ? children : <View className='text-16 text-black font-medium text-center leading-24 mt-20'>{text}</View>}
    </View>
  )
}