diff --git a/src/plugins/start/settings.plugins/components/RepoRemoveConfirmationAlert.tsx b/src/plugins/start/settings.plugins/components/RepoRemoveConfirmationAlert.tsx new file mode 100644 index 0000000..d9c8aa0 --- /dev/null +++ b/src/plugins/start/settings.plugins/components/RepoRemoveConfirmationAlert.tsx @@ -0,0 +1,37 @@ +import { Design } from '@revenge-mod/discord/design' +import type { Repo } from '@revenge-mod/plugins/_/repositories' + +const { AlertModal, AlertActionButton, Text } = Design + +export default function RepoRemoveConfirmationAlert({ + repo, + action, +}: { + repo: Repo + action: () => Promise | void +}) { + return ( + + + {repo.name ?? repo.url} + {' '} + will be removed. You can restore the default repositories by + clearing Plugin Settings data. + + } + actions={ + <> + + + + } + /> + ) +}