import Link from "next/link"; import React from "react"; import { useAppSelector, useAppDispatch } from "../lib/hooks"; import { togglePlugin } from "../slices/plugins"; import styles from "../styles/PluginList.module.css"; import { excludedPlugins } from "./DataDirPicker"; type Props = {}; const PluginsList: React.FC = () => { const dispatch = useAppDispatch(); const plugins = useAppSelector((state) => state.plugins.plugins); const pluginsPending = useAppSelector((state) => state.plugins.pending); return ( <>
    {plugins.map((plugin) => (
  1. dispatch(togglePlugin(plugin.filename))} /> {/*

    {plugin.parsed && plugin.parsed.header.description}

    */}
  2. ))}
{pluginsPending > 0 && ( Loading {pluginsPending} plugin{pluginsPending === 1 ? "" : "s"} )} ); }; export default PluginsList;