MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / NewComment

Function NewComment

emails/NewComment.tsx:22–79  ·  view source on GitHub ↗
({
  authorName = "Developer",
  extensionName = "My Extension",
  productId = "my-extension",
  commenterName = "Someone",
  commentPreview = "This is a great extension!",
}: NewCommentProps)

Source from the content-addressed store, hash-verified

20}
21
22export function NewComment({
23 authorName = "Developer",
24 extensionName = "My Extension",
25 productId = "my-extension",
26 commenterName = "Someone",
27 commentPreview = "This is a great extension!",
28}: NewCommentProps) {
29 const extensionUrl = `https://opencode.cafe/plugin/${productId}`
30
31 return (
32 <Html>
33 <Head />
34 <Preview>New comment on {extensionName}</Preview>
35 <Body style={main}>
36 <Container style={container}>
37 <Section style={logoSection}>
38 <Img
39 src="https://opencode.cafe/opencode_cafe_email.png"
40 width="150"
41 height="17"
42 alt="opencode.cafe"
43 />
44 </Section>
45
46 <Heading style={heading}>New Comment on Your Extension</Heading>
47
48 <Text style={text}>Hey {authorName},</Text>
49
50 <Text style={text}>
51 <strong style={strongText}>{commenterName}</strong> left a comment on your extension{" "}
52 <strong style={strongText}>{extensionName}</strong>.
53 </Text>
54
55 <Section style={commentSection}>
56 <Text style={commentText}>&quot;{commentPreview}&quot;</Text>
57 </Section>
58
59 <Section style={buttonSection}>
60 <Link href={extensionUrl} style={button}>
61 View Discussion
62 </Link>
63 </Section>
64
65 <Section style={footer}>
66 <Text style={footerText}>
67 <Link href="https://opencode.cafe" style={link}>
68 opencode.cafe
69 </Link>
70 </Text>
71 <Text style={disclaimerText}>
72 This is a community project and is not affiliated with OpenCode or SST.
73 </Text>
74 </Section>
75 </Container>
76 </Body>
77 </Html>
78 )
79}

Callers 1

email.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected