MCPcopy Create free account
hub / github.com/editablejs/editable / renderError

Function renderError

packages/plugins/image/src/components/image.tsx:162–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 const isError = state === 'error' || !!errorMsg
161
162 const renderError = () => {
163 if (!isError) return null
164 return (
165 <span tw="px-2 py-0.5 text-sm text-red-500 align-baseline border border-gray-300 rounded">
166 <span>{errorMsg || 'Image error.'}</span>
167 </span>
168 )
169 }
170
171 const renderImage = () => {
172 if (isError || !src || !loaded) return null

Callers 1

image.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…