Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ImageDisplay.tsx

12 lines305 Bytes

1export function ImageDisplay({ src, alt }: { src: string; alt?: string }) {
2 return (
3 <div className="p-4">
4 <img
5 data-testid="generated-image"
6 src={src}
7 alt={alt || 'Generated image'}
8 className="max-w-md rounded border border-gray-700"
9 />
10 </div>
11 )