(loadErrorPluginNames: string[])
| 3 | import { t } from 'tailchat-shared'; |
| 4 | |
| 5 | export function showPluginLoadError(loadErrorPluginNames: string[]) { |
| 6 | notification.warn({ |
| 7 | message: ( |
| 8 | <div> |
| 9 | <p>{t('插件加载失败')}:</p> |
| 10 | |
| 11 | {loadErrorPluginNames.map((name) => ( |
| 12 | <p key={name}>- {name}</p> |
| 13 | ))} |
| 14 | </div> |
| 15 | ), |
| 16 | duration: 2, |
| 17 | }); |
| 18 | } |
no test coverage detected