MCPcopy Create free account
hub / github.com/Dominux/Pentaract / AlertStack

Function AlertStack

ui/src/components/AlertStack.jsx:36–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34})
35
36const 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
59export default AlertStack

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected