MCPcopy Create free account
hub / github.com/SplootCode/splootcode / statusColour

Function statusColour

packages/editor/src/runtime/response_viewer.tsx:91–99  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

89 const { statusCode } = props
90
91 const statusColour = (code) => {
92 if (code >= 200 && code < 300) {
93 return 'green.400'
94 } else if (code >= 400 && code < 600) {
95 return 'red.400'
96 }
97
98 return 'white'
99 }
100
101 return (
102 <Text fontFamily={'Inconsolata'}>

Callers 1

StatusCodeInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected