import { ScrollArea, ScrollBar } from './ui/scroll-area'; import { useStore } from '../store/useStore'; import { cn } from '../lib/utils'; import { useShallow } from 'zustand/react/shallow'; export function Gallery() { const { currentImage, gallery, setCurrentImage } = useStore(useShallow((state) => ({ currentImage: state.currentImage, gallery: state.gallery, setCurrentImage: state.setCurrentImage, }))); return (

Recent

{gallery.length === 0 ? 'No saved frames yet' : `${gallery.length} saved`}

{gallery.length === 0 ? (
Generated images will collect here for quick comparison.
) : (
{gallery.map((image, index) => { const isSelected = image === currentImage; return ( ); })}
)}
); }