import { useState } from "react"; import Modal from "../ui/Modal"; import Button from "../ui/Button"; interface Props { projectName: string; /** An AWS project: its task, task definitions and secret go instead of Docker state. */ aws?: boolean; /** AWS: the workspace may have saved files on EFS (offers deleting them). */ savedFiles?: boolean; onConfirm: (opts: { discardData: boolean }) => void; onCancel: () => void; } const REMOVE_CLASS = "bg-[var(--error-emphasis)] text-white border border-transparent hover:opacity-90"; export default function ConfirmRemoveModal({ projectName, aws = false, savedFiles = false, onConfirm, onCancel, }: Props) { const [discardData, setDiscardData] = useState(false); return ( } > {aws ? ( <>

Are you sure you want to remove{" "} {projectName}? This stops its workspace on AWS and removes its task definitions and its secret (the secret is deleted after AWS’s 7-day recovery window). Work that was not pushed to a remote is lost.

{savedFiles && ( )} ) : ( <> {/* Everything remove_project() destroys, named. It removes the container, *both* named volumes (triple-c-home-{id} and triple-c-claude-config-{id}), the triple-c-snapshot-{id} image and the project's keychain secrets — so an accurate warning has to reach past "the config volume". The last sentence is the reassuring half and matters just as much: project folders are bind mounts from the host and nothing here touches them. */}

Are you sure you want to remove{" "} {projectName}? This deletes its container, both of its volumes and its saved container image — so the home directory, the Claude login and config, installed skills, session transcripts, scheduled tasks and any stored credentials all go with it.

Your project folders on this machine are mounted in, not copied, and are left untouched.

)}
); } /** The second confirm when an AWS project's connection is gone. */ export function ConfirmForgetAwsModal({ projectName, reason, onConfirm, onCancel, }: { projectName: string; reason: string; onConfirm: () => void; onCancel: () => void; }) { return ( } >

{reason}

Removing {projectName} now leaves its AWS resources in the account: the task (which may still be running and billed), its task definitions, its secret and its saved files. You would have to remove them in AWS yourself.

); }