import { observer } from "mobx-react-lite"; import styles from "./Panes.module.scss"; import { Text } from "preact-i18n"; import { Button, Checkbox } from "@revoltchat/ui"; import { useApplicationState } from "../../../mobx/State"; import Tip from "../../../components/ui/Tip"; // Just keeping this here for general purpose. Should probably be exported // elsewhere, though. interface Plugin { namespace: string; id: string; version: string; enabled: boolean | undefined; } interface CardProps { plugin: Plugin; } function PluginCard({ plugin }: CardProps) { const plugins = useApplicationState().plugins; // TODO(lexisother): ...don't hijack bot cards? We need a general-purpose // card component. return (