xref: /MusicFree/src/components/base/noPlugin.tsx (revision 10fc4329feb6e8b5383965f04679d2a2b61e2926)
1*10fc4329S猫头猫import React from 'react';
2*10fc4329S猫头猫import {StyleSheet, View} from 'react-native';
3*10fc4329S猫头猫import rpx from '@/utils/rpx';
4*10fc4329S猫头猫import ThemeText from '@/components/base/themeText';
5*10fc4329S猫头猫
6*10fc4329S猫头猫interface IProps {
7*10fc4329S猫头猫    notSupportType?: string;
8*10fc4329S猫头猫}
9*10fc4329S猫头猫
10*10fc4329S猫头猫export default function NoPlugin(props: IProps) {
11*10fc4329S猫头猫    return (
12*10fc4329S猫头猫        <View style={style.wrapper}>
13*10fc4329S猫头猫            <ThemeText fontSize="title">
14*10fc4329S猫头猫                还没有安装
15*10fc4329S猫头猫                {props?.notSupportType
16*10fc4329S猫头猫                    ? `支持「${props.notSupportType}」功能的`
17*10fc4329S猫头猫                    : ''}
18*10fc4329S猫头猫                插件哦
19*10fc4329S猫头猫            </ThemeText>
20*10fc4329S猫头猫            <ThemeText
21*10fc4329S猫头猫                style={style.mt}
22*10fc4329S猫头猫                fontSize="subTitle"
23*10fc4329S猫头猫                fontColor="textSecondary">
24*10fc4329S猫头猫                先去 侧边栏-插件管理 里安装插件吧~
25*10fc4329S猫头猫            </ThemeText>
26*10fc4329S猫头猫        </View>
27*10fc4329S猫头猫    );
28*10fc4329S猫头猫}
29*10fc4329S猫头猫
30*10fc4329S猫头猫const style = StyleSheet.create({
31*10fc4329S猫头猫    wrapper: {
32*10fc4329S猫头猫        width: rpx(750),
33*10fc4329S猫头猫        flex: 1,
34*10fc4329S猫头猫        alignItems: 'center',
35*10fc4329S猫头猫        justifyContent: 'center',
36*10fc4329S猫头猫    },
37*10fc4329S猫头猫    mt: {
38*10fc4329S猫头猫        marginTop: rpx(24),
39*10fc4329S猫头猫    },
40*10fc4329S猫头猫});
41