diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx
index f6cfe4e8c..053b97662 100644
--- a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx
+++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx
@@ -67,16 +67,8 @@ function GeneratedNotice({
+
>
);
}
@@ -91,15 +83,7 @@ function SimpleNotice({
return (
<>
{title}
-
-
-
+
>
);
}
@@ -117,7 +101,29 @@ function FailureNotice({
{notice.message}
-
+
+ >
+ );
+}
+
+function NoticeFooter({
+ onClose,
+ onRetry,
+ retryLabel = '重试',
+}: {
+ onClose: () => void;
+ onRetry?: () => void;
+ retryLabel?: string;
+}) {
+ return (
+
+ {onRetry ? (
- {notice.onRetry ? (
-
- ) : null}
-
- >
+ ) : null}
+
+
);
}