()
| 34 | }) |
| 35 | |
| 36 | const AlertStack = () => { |
| 37 | const { alertList } = alertStore |
| 38 | |
| 39 | return ( |
| 40 | <Stack |
| 41 | sx={{ |
| 42 | position: 'fixed', |
| 43 | zIndex: 99999, |
| 44 | right: '1rem', |
| 45 | top: '5rem', |
| 46 | maxWidth: 360, |
| 47 | width: '30vw', |
| 48 | minWidth: 240, |
| 49 | }} |
| 50 | spacing={1} |
| 51 | > |
| 52 | <For each={alertList()}> |
| 53 | {(alert) => <Alert severity={alert.severity}>{alert.msg}</Alert>} |
| 54 | </For> |
| 55 | </Stack> |
| 56 | ) |
| 57 | } |
| 58 | |
| 59 | export default AlertStack |
nothing calls this directly
no outgoing calls
no test coverage detected