import { Design } from '@revenge-mod/discord/design' import type { AnyPlugin } from '@revenge-mod/plugins/_' const { AlertModal, AlertActionButton, Text, TableRowGroup, TableRow } = Design export default function PluginMissingDependenciesAlert({ plugin, dependencies, action, }: { plugin: AnyPlugin /** The missing required dependencies: id + the declared version range. */ dependencies: { id: string; range: string }[] action: () => unknown }) { return ( Plugin{' '} {plugin.manifest.name} {' '} requires plugins that are not installed. Install them from your repositories to enable it. } extraContent={ {dependencies.map(dep => ( ))} } actions={ <> } /> ) }