Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(assistant-ui): add image element component

Steven Enamakel295c07ad0264
diff --git a/app/src/components/assistant-ui/elements/image.tsx b/app/src/components/assistant-ui/elements/image.tsx
index 0780314a24..c3a6c04832 100644
--- a/app/src/components/assistant-ui/elements/image.tsx
+++ b/app/src/components/assistant-ui/elements/image.tsx
@@ -205,6 +205,7 @@ function ImageFilename({ className, children, ...props }: React.ComponentProps<'
type ImageZoomProps = PropsWithChildren<{ src: string; alt?: string }>;
function ImageZoom({ src, alt = 'Image preview', children }: ImageZoomProps) {
+ const { t } = useT();
const [isMounted, setIsMounted] = useState(false);
const [isOpen, setIsOpen] = useState(false);