ai-chatbot/components/scene-fusion-dialog.tsx
Your Name 8688cac064
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
fix(scene-fusion): refine UI layout and add result image preview modal
2026-03-06 00:19:51 +08:00

38 lines
1.1 KiB
TypeScript

"use client";
import React from "react";
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import { SceneFusionView } from "@/components/scene-fusion-view";
interface SceneFusionDialogProps {
open: boolean;
onOpenChange: (open: boolean) => void;
onBatchAddToCanvas?: (imageUrls: string[]) => void | Promise<void>;
}
export function SceneFusionDialog({ open, onOpenChange, onBatchAddToCanvas }: SceneFusionDialogProps) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-6xl h-[92vh] flex flex-col p-0 gap-0 overflow-hidden bg-white">
<DialogHeader className="sr-only">
<DialogTitle>批量处理</DialogTitle>
<DialogDescription>批量处理图片与场景裂变。</DialogDescription>
</DialogHeader>
<div className="h-full min-h-0 flex-1 bg-white">
<div className="h-full">
<SceneFusionView
onBatchAddToCanvas={onBatchAddToCanvas}
/>
</div>
</div>
</DialogContent>
</Dialog>
);
}