MCPcopy Create free account
hub / github.com/Botloader/botloader / ListScripts

Function ListScripts

frontend/src/pages/user/plugins/Scripts.tsx:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33function ListScripts() {
34 let { value: scripts } = useFetchedDataBehindGuard(scriptsContext);
35
36 return <Paper>
37 <List>
38 {scripts.map((v) => <ScriptItem script={v} key={v.id} />)}
39 {scripts.length === 0 ? <p>...</p> : null}
40 </List>
41 </Paper>
42
43}
44
45
46function ScriptItem({ script }: {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected