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