121f1ca13S猫头猫import React from 'react'; 221f1ca13S猫头猫import {StyleSheet, View} from 'react-native'; 321f1ca13S猫头猫import rpx from '@/utils/rpx'; 421f1ca13S猫头猫import {ActivityIndicator, useTheme} from 'react-native-paper'; 521f1ca13S猫头猫import {fontWeightConst} from '@/constants/uiConst'; 621f1ca13S猫头猫import ThemeText from './themeText'; 721f1ca13S猫头猫 8*ecd094f3S猫头猫interface IEmptyProps { 9*ecd094f3S猫头猫 content?: string; 10*ecd094f3S猫头猫} 11*ecd094f3S猫头猫export default function Empty(props: IEmptyProps) { 1221f1ca13S猫头猫 return ( 1321f1ca13S猫头猫 <View style={style.wrapper}> 14*ecd094f3S猫头猫 <ThemeText fontSize="title"> 15*ecd094f3S猫头猫 {props?.content ?? '什么都没有呀~'} 16*ecd094f3S猫头猫 </ThemeText> 1721f1ca13S猫头猫 </View> 1821f1ca13S猫头猫 ); 1921f1ca13S猫头猫} 2021f1ca13S猫头猫 2121f1ca13S猫头猫const style = StyleSheet.create({ 2221f1ca13S猫头猫 wrapper: { 2321f1ca13S猫头猫 width: '100%', 2421f1ca13S猫头猫 flex: 1, 2521f1ca13S猫头猫 minHeight: rpx(300), 2621f1ca13S猫头猫 justifyContent: 'center', 2721f1ca13S猫头猫 alignItems: 'center', 2821f1ca13S猫头猫 }, 2921f1ca13S猫头猫}); 30