MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / RenderErrorOverlay

Function RenderErrorOverlay

packages/frontend/src/ui/error-overlay.tsx:147–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145const RenderErrorOverlay: s.Component<HeadlessErrorOverlayRenderProps & {
146 footer?: s.JSX.Element,
147}> = props => (
148 <div class="fixed inset-0 z-9999 overflow-y-auto overscroll-none">
149 <div class="min-h-full p-y-4 p-x-8 center-child bg-black/50">
150 <div class="min-w-80 p-4 gap-y-2 m-y-8 overflow-hidden bg-panel-8 rounded-md font-mono text-panel-1">
151 <div class="flex items-center justify-between">
152 <div class="center-child gap-x-1">
153 <button class={button} onClick={props.goPrev}>
154 <span class="sr-only">Prev</span>
155 <icon.ArrowLeft class={icon_class} />
156 </button>
157 <button class={button} onClick={props.goNext}>
158 <span class="sr-only">Prev</span>
159 <icon.ArrowRight class={icon_class} />
160 </button>
161 <span class="p-1 font-500">
162 <span>{props.currentCount}</span>
163 {' of '}
164 <span>{props.maxCount}</span>
165 </span>
166 </div>
167 <div class="center-child gap-x-1">
168 <button class={button} onClick={props.resetError}>
169 <span class="sr-only">Reset</span>
170 <icon.Refresh class={icon_class} />
171 </button>
172 </div>
173 </div>
174 <div class="p-t-2 flex flex-col gap-y-2">
175 <span class="text-red font-500 break-words">
176 <span class="font-700">
177 {props.error instanceof Error ? props.error.name : 'UnknownError'}
178 </span>
179 {': '}
180 {props.error instanceof Error ? props.error.message : String(props.error)}
181 </span>
182 {props.footer && <div>{props.footer}</div>}
183 </div>
184 </div>
185 </div>
186 </div>
187)
188
189export const ErrorOverlay: s.ParentComponent<{
190 footer?: s.JSX.Element

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…