(
props: P,
)
| 285 | } |
| 286 | |
| 287 | function NotificationError<P extends { title: string; message: string }>( |
| 288 | props: P, |
| 289 | ) { |
| 290 | return ( |
| 291 | <div class="bg-red-700 bg-opacity-75 p-2 rounded text-white"> |
| 292 | <h3 class="font-extrabold">{props.title}</h3> |
| 293 | <p class="text-sm whitespace-pre-line"> |
| 294 | {props.message} |
| 295 | </p> |
| 296 | </div> |
| 297 | ); |
| 298 | } |
| 299 | |
| 300 | function NotificationInfo<P extends { title: string; message: string, override_on_click?: () => void }>( |
| 301 | props: P, |