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.
12 lines
345 B
TypeScript
12 lines
345 B
TypeScript
|
5 years ago
|
import { pluginGroupPanel, PluginGroupPanel } from '@/plugin/common';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 查找注册插件提供的群组面板的信息
|
||
|
|
* @param pluginPanelName 插件面板名
|
||
|
|
*/
|
||
|
|
export function findPluginPanelInfoByName(
|
||
|
|
pluginPanelName: string
|
||
|
|
): PluginGroupPanel | undefined {
|
||
|
|
return pluginGroupPanel.find((p) => p.name === pluginPanelName);
|
||
|
|
}
|