( session: Session, message: string, title: string )
| 35 | } |
| 36 | |
| 37 | export function setErrorMessage( |
| 38 | session: Session, |
| 39 | message: string, |
| 40 | title: string |
| 41 | ) { |
| 42 | session.flash("toastMessage", { |
| 43 | message, |
| 44 | title, |
| 45 | type: "error", |
| 46 | id: crypto.randomUUID(), |
| 47 | }); |
| 48 | } |