xref: /MusicFree/src/components/base/empty.tsx (revision 6704747af84cebd842b258efac7143542722fac5)
1import React from 'react';
2import {StyleSheet, View} from 'react-native';
3import rpx from '@/utils/rpx';
4import {ActivityIndicator, useTheme} from 'react-native-paper';
5import {fontWeightConst} from '@/constants/uiConst';
6import ThemeText from './themeText';
7
8interface IEmptyProps {
9  content?: string;
10}
11export default function Empty(props: IEmptyProps) {
12  return (
13    <View style={style.wrapper}>
14      <ThemeText fontSize="title">
15        {props?.content ?? '什么都没有呀~'}
16      </ThemeText>
17    </View>
18  );
19}
20
21const style = StyleSheet.create({
22  wrapper: {
23    width: '100%',
24    flex: 1,
25    minHeight: rpx(300),
26    justifyContent: 'center',
27    alignItems: 'center',
28  },
29});
30