import type { ThemeProps } from "../../types"; import logo from "../../assets/icon.png"; import "./plasma.css"; export default function PlasmaTheme({ config, state }: ThemeProps) { const { step, progress, installPath } = state; const { texts } = config; const getStatusText = () => { for (let i = texts.progressFrames.length - 1; i >= 0; i--) { if (progress <= texts.progressFrames[i].limit) return texts.progressFrames[i].text; } return texts.progressFrames[texts.progressFrames.length - 1]?.text ?? ""; }; return (
{/* 复杂的动态流体背景层 */}
Logo {config.appDisplayName}
{step === 1 && (

{texts.welcomeTitle}

{texts.welcomeSubtitle}

Destination Node:
{installPath}
)} {step === 2 && (
{progress}%
{getStatusText()}
)} {step === 3 && (

{texts.successTitle}

{texts.successSubtitle}

{texts.features.map(f => (
{f.label}
))}
)}
); }