MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / errorToast

Function errorToast

webapp/src/lib/util.ts:10–16  ·  view source on GitHub ↗
(error: {message: string, status?: number})

Source from the content-addressed store, hash-verified

8} from "date-fns";
9
10export function errorToast(error: {message: string, status?: number}) {
11 return addToast({
12 title: error.status || 'Error!',
13 description: error.message || 'Something went wrong!',
14 color: 'danger'
15 })
16}
17
18export function successToast(message: string, title?: string, ) {
19 return addToast({

Callers 2

onUploadImageFunction · 0.90
handleErrorFunction · 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…