MCPcopy Create free account
hub / github.com/dtinth/ThreadGPT / ErrorTab

Function ErrorTab

src/components/ErrorTab.tsx:8–15  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

6}
7
8const ErrorTab: React.FC<Props> = (props) =>{
9 const isEmptyString = (typeof props.error === 'string') && props.error == "";
10 return (
11 <div className="alert alert-danger" role="alert">
12 {isEmptyString ? errorToString("Content not found") : errorToString(props.error)}
13 </div>
14 )
15}
16
17export {
18 ErrorTab

Callers

nothing calls this directly

Calls 1

errorToStringFunction · 0.90

Tested by

no test coverage detected