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