MCPcopy
hub / github.com/ZHO-ZHO-ZHO/Nano-Bananary / handleDownloadBoth

Function handleDownloadBoth

components/ResultDisplay.tsx:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 };
58
59 const handleDownloadBoth = () => {
60 if (content.secondaryImageUrl) {
61 downloadImage(content.secondaryImageUrl, `line-art-${Date.now()}.png`);
62 }
63 if (content.imageUrl) {
64 downloadImage(content.imageUrl, `final-result-${Date.now()}.png`);
65 }
66 };
67
68 const handleDownloadComparison = useCallback(async () => {
69 const imagesToLoad: {url: string | null, img: HTMLImageElement}[] = [

Callers

nothing calls this directly

Calls 1

downloadImageFunction · 0.90

Tested by

no test coverage detected