({ heading, links }: LinksProps)
| 156 | }), |
| 157 | ) |
| 158 | .min(1) |
| 159 | .describe("Links rendered as a single dot-separated row."), |
| 160 | }); |
| 161 | |
| 162 | type LinksProps = z.infer<typeof linksSchema>; |
| 163 | |
| 164 | function LinksCard({ heading, links }: LinksProps) { |
| 165 | // `[label](url)` is rewritten to Slack's `<url|label>` link form by |
| 166 | // `markdownToMrkdwn`; authoring the raw `<url|label>` here would have its |
| 167 | // inner text mangled, so we author markdown links instead. |
| 168 | return ( |
| 169 | <Message> |
| 170 | <Header>{`🔗 ${heading}`}</Header> |
| 171 | <Section> |
| 172 | {links.map((l) => `[${l.label}](${l.url})`).join(" · ")} |
| 173 | </Section> |
nothing calls this directly
no outgoing calls
no test coverage detected