MCPcopy Create free account
hub / github.com/CopilotKit/OpenTag / LinksCard

Function LinksCard

app/tools/showcase-tools.tsx:158–170  ·  view source on GitHub ↗
({ heading, links }: LinksProps)

Source from the content-addressed store, hash-verified

156 }),
157 )
158 .min(1)
159 .describe("Links rendered as a single dot-separated row."),
160});
161
162type LinksProps = z.infer<typeof linksSchema>;
163
164function 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>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected