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

Function onChange

packages/shared/src/components/fields/ImageInput.tsx:76–83  ·  view source on GitHub ↗
(base64, file)

Source from the content-addressed store, hash-verified

74 acceptedTypes: acceptedTypesList,
75 limitMb: fileSizeLimitMB,
76 onChange(base64, file) {
77 if (!base64) {
78 return onChange?.(null);
79 }
80
81 setImage(base64);
82 return onChange?.(base64, file);
83 },
84 });
85
86 const onFileChange = (event: ChangeEvent) => {

Callers 1

onCloseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected