(error: {message: string, status?: number})
| 8 | } from "date-fns"; |
| 9 | |
| 10 | export 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 | |
| 18 | export function successToast(message: string, title?: string, ) { |
| 19 | return addToast({ |
no outgoing calls
no test coverage detected
searching dependent graphs…