({ heading, fields }: StatusProps)
| 113 | }), |
| 114 | ) |
| 115 | .min(1) |
| 116 | .describe("Label/value pairs laid out as a two-column grid."), |
| 117 | }); |
| 118 | |
| 119 | type StatusProps = z.infer<typeof statusSchema>; |
| 120 | |
| 121 | function StatusCard({ heading, fields }: StatusProps) { |
| 122 | return ( |
| 123 | <Message accent="#5E6AD2"> |
| 124 | <Header>{`📊 ${heading}`}</Header> |
| 125 | <Fields> |
| 126 | {fields.map((f) => ( |
| 127 | <Field>{`**${f.label}**\n${f.value}`}</Field> |
| 128 | ))} |
| 129 | </Fields> |
nothing calls this directly
no outgoing calls
no test coverage detected