(element: JSX.Element)
| 451 | } |
| 452 | |
| 453 | function push_notification(element: JSX.Element): number { |
| 454 | let index = notification().length; |
| 455 | set_notification((p) => [...p, element]); |
| 456 | return index; |
| 457 | } |
| 458 | |
| 459 | function delete_notification(index: number) { |
| 460 | set_notification((p) => { |