| 18 | } |
| 19 | |
| 20 | export function ExtensionApproved({ |
| 21 | authorName = "Developer", |
| 22 | extensionName = "My Extension", |
| 23 | productId = "my-extension", |
| 24 | }: ExtensionApprovedProps) { |
| 25 | const extensionUrl = `https://opencode.cafe/plugin/${productId}` |
| 26 | |
| 27 | return ( |
| 28 | <Html> |
| 29 | <Head /> |
| 30 | <Preview>Your extension "{extensionName}" has been approved</Preview> |
| 31 | <Body style={main}> |
| 32 | <Container style={container}> |
| 33 | <Section style={logoSection}> |
| 34 | <Img |
| 35 | src="https://opencode.cafe/opencode_cafe_email.png" |
| 36 | width="150" |
| 37 | height="17" |
| 38 | alt="opencode.cafe" |
| 39 | /> |
| 40 | </Section> |
| 41 | |
| 42 | <Heading style={heading}>Extension Approved</Heading> |
| 43 | |
| 44 | <Text style={text}>Hi {authorName},</Text> |
| 45 | |
| 46 | <Text style={text}> |
| 47 | Great news! Your extension <strong>{extensionName}</strong> has been |
| 48 | reviewed and approved. It's now live on opencode.cafe. |
| 49 | </Text> |
| 50 | |
| 51 | <Section style={buttonSection}> |
| 52 | <Link href={extensionUrl} style={button}> |
| 53 | View Your Extension |
| 54 | </Link> |
| 55 | </Section> |
| 56 | |
| 57 | <Text style={textMuted}> |
| 58 | Direct link:{" "} |
| 59 | <Link href={extensionUrl} style={link}> |
| 60 | {extensionUrl} |
| 61 | </Link> |
| 62 | </Text> |
| 63 | |
| 64 | <Section style={footer}> |
| 65 | <Text style={footerText}> |
| 66 | Thanks for contributing to the community. |
| 67 | </Text> |
| 68 | <Text style={footerText}> |
| 69 | <Link href="https://opencode.cafe" style={link}> |
| 70 | opencode.cafe |
| 71 | </Link> |
| 72 | </Text> |
| 73 | <Text style={disclaimerText}> |
| 74 | This is a community project and is not affiliated with OpenCode or SST. |
| 75 | </Text> |
| 76 | </Section> |
| 77 | </Container> |