import type { ComputerWithStatus } from "@/src/types"; import ComputerListRow from "../../(partials)/computer-list-row"; import SettingsRowAction from "../../(partials)/settings-row-action"; type Props = { computer: ComputerWithStatus; is_super_admin: boolean; busy?: boolean; onRetry: () => void; onDelete: () => void; }; /** * One computer: its name, state and resources. The title opens its * settings page; super admins can retry a failed setup and delete a * sandbox. */ export default function ComputerSettingsRow({ computer, is_super_admin, busy, onRetry, onDelete, }: Props) { const name = computer.name || `Computer ${computer.id}`; const busy_here = busy || computer.status == "creating"; return ( {is_super_admin && computer.status == "failed" ? ( ) : null} {is_super_admin && computer.kind != "main" ? ( ) : null} ); }