mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
404 B
TypeScript
19 lines
404 B
TypeScript
import { notification } from 'antd';
|
|
import React from 'react';
|
|
import { t } from 'tailchat-shared';
|
|
|
|
export function showPluginLoadError(loadErrorPluginNames: string[]) {
|
|
notification.warn({
|
|
message: (
|
|
<div>
|
|
<p>{t('插件加载失败')}:</p>
|
|
|
|
{loadErrorPluginNames.map((name) => (
|
|
<p key={name}>- {name}</p>
|
|
))}
|
|
</div>
|
|
),
|
|
duration: 2,
|
|
});
|
|
}
|