feat(tool-page): render ResultsPanel for no-dropzone tools when available

This commit is contained in:
Siddharth Kumar Sah
2026-04-13 02:51:49 +08:00
parent 02178df8d3
commit 267e2bce6b
+8
View File
@@ -275,6 +275,14 @@ export function ToolPage() {
// Render the image viewer based on display mode
function renderImageArea() {
if (isNoDropzone) {
if (registryEntry?.ResultsPanel) {
const Panel = registryEntry.ResultsPanel;
return (
<Suspense fallback={<div className="text-sm text-muted-foreground">Loading...</div>}>
<Panel />
</Suspense>
);
}
return (
<div className="text-center text-muted-foreground">
<p className="text-sm">Configure settings and generate.</p>