import { createSignal, Show, For } from 'solid-js'; import type { UpdatePlan } from '@/api/updates'; interface UpdateConfirmationModalProps { isOpen: boolean; onClose: () => void; onConfirm: () => void; currentVersion: string; latestVersion: string; plan: UpdatePlan; isApplying: boolean; } export function UpdateConfirmationModal(props: UpdateConfirmationModalProps) { const [acknowledged, setAcknowledged] = createSignal(false); const handleConfirm = () => { if (acknowledged() && !props.isApplying) { props.onConfirm(); } }; return (
{/* Header */}

Confirm Update

{/* Body */}
{/* Version Jump */}
Version Update
{props.currentVersion} {props.latestVersion}
{/* Estimated Time */}
Estimated time: {props.plan.estimatedTime}
{/* Prerequisites */} 0}>
Prerequisites
    {(prerequisite) => (
  • {prerequisite}
  • )}
{/* Root Required Warning */}
Root access required
This update requires elevated privileges to modify system files.
{/* Rollback Support */}
Automatic backup will be created
{/* Acknowledgement Checkbox */}
{/* Footer */}
); }