MCPcopy Create free account
hub / github.com/dailydotdev/apps / getDisplayImage

Function getDisplayImage

packages/shared/src/hooks/useControlledImageUpload.ts:93–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 };
92
93 const getDisplayImage = (): string | null => {
94 if (preview) {
95 return preview;
96 }
97
98 if (fileValue === null) {
99 return fallbackImage || null;
100 }
101 return currentImage || fallbackImage || null;
102 };
103
104 const displayImage = getDisplayImage();
105

Callers 1

useControlledImageUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected