/** * 插件列表组件 */ import { PluginListItem } from '@typings/plugin'; import { PluginCard } from './PluginCard'; import { StatePanel } from '@components/console'; interface PluginListProps { plugins: PluginListItem[]; onEnable: (name: string) => void; onDisable: (name: string) => void; } export function PluginList({ plugins, onEnable, onDisable }: PluginListProps) { if (plugins.length === 0) { return ( ); } return (
{plugins.map((plugin) => ( ))}
); }