From baca84904294801f6047cc610ae64ce37105d5ab Mon Sep 17 00:00:00 2001 From: Rosie Val Date: Sat, 8 Aug 2026 21:30:23 -0400 Subject: [PATCH] Add repo removal confirmation alert component --- .../RepoRemoveConfirmationAlert.tsx | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/plugins/start/settings.plugins/components/RepoRemoveConfirmationAlert.tsx 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={ + <> + + + + } + /> + ) +}