2026-08-09 11:35:42 -07:00
|
|
|
import Modal from "../ui/Modal";
|
|
|
|
|
import Button from "../ui/Button";
|
2026-03-06 08:14:44 -08:00
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
projectName: string;
|
|
|
|
|
onConfirm: () => void;
|
|
|
|
|
onCancel: () => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function ConfirmRemoveModal({ projectName, onConfirm, onCancel }: Props) {
|
|
|
|
|
return (
|
2026-08-09 11:35:42 -07:00
|
|
|
<Modal
|
|
|
|
|
title="Remove Project"
|
|
|
|
|
onClose={onCancel}
|
|
|
|
|
widthClassName="w-[26rem]"
|
|
|
|
|
footer={
|
|
|
|
|
<>
|
|
|
|
|
<Button size="md" variant="ghost" onClick={onCancel}>
|
2026-03-06 08:14:44 -08:00
|
|
|
Cancel
|
2026-08-09 11:35:42 -07:00
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
size="md"
|
2026-03-06 08:14:44 -08:00
|
|
|
onClick={onConfirm}
|
2026-08-09 11:35:42 -07:00
|
|
|
className="bg-[var(--error-emphasis)] text-white border border-transparent hover:opacity-90"
|
2026-03-06 08:14:44 -08:00
|
|
|
>
|
|
|
|
|
Remove
|
2026-08-09 11:35:42 -07:00
|
|
|
</Button>
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<p className="text-[13px] text-[var(--text-secondary)]">
|
|
|
|
|
Are you sure you want to remove{" "}
|
|
|
|
|
<strong className="text-[var(--text-primary)]">{projectName}</strong>? This will
|
|
|
|
|
delete the container, config volume, and stored credentials.
|
|
|
|
|
</p>
|
|
|
|
|
</Modal>
|
2026-03-06 08:14:44 -08:00
|
|
|
);
|
|
|
|
|
}
|