({
email = "",
url = "",
videoName = "",
commenterName = "",
commentContent = "",
manageNotificationsUrl,
}: {
email: string;
url: string;
videoName: string;
commenterName: string;
commentContent: string;
manageNotificationsUrl?: string;
})
| 15 | import Footer from "./components/Footer"; |
| 16 | |
| 17 | export function NewComment({ |
| 18 | email = "", |
| 19 | url = "", |
| 20 | videoName = "", |
| 21 | commenterName = "", |
| 22 | commentContent = "", |
| 23 | manageNotificationsUrl, |
| 24 | }: { |
| 25 | email: string; |
| 26 | url: string; |
| 27 | videoName: string; |
| 28 | commenterName: string; |
| 29 | commentContent: string; |
| 30 | manageNotificationsUrl?: string; |
| 31 | }) { |
| 32 | return ( |
| 33 | <Html> |
| 34 | <Head /> |
| 35 | <Preview>New comment on your Cap: {videoName}</Preview> |
| 36 | <Tailwind> |
| 37 | <Body className="mx-auto my-auto bg-gray-1 font-sans"> |
| 38 | <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5"> |
| 39 | <Section className="mt-8"> |
| 40 | <Img |
| 41 | src={CAP_LOGO_URL} |
| 42 | width="40" |
| 43 | height="40" |
| 44 | alt="Cap" |
| 45 | className="mx-auto my-0" |
| 46 | /> |
| 47 | </Section> |
| 48 | <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black"> |
| 49 | New comment on your Cap |
| 50 | </Heading> |
| 51 | <Text className="text-sm leading-6 text-black"> |
| 52 | {commenterName} left a comment on your Cap "{videoName}": |
| 53 | </Text> |
| 54 | <Section className="my-4 p-4 bg-gray-50 rounded-lg"> |
| 55 | <Text className="text-sm leading-6 text-gray-700 italic"> |
| 56 | "{commentContent}" |
| 57 | </Text> |
| 58 | </Section> |
| 59 | <Text className="text-sm leading-6 text-black"> |
| 60 | Click the button below to view the comment and respond. |
| 61 | </Text> |
| 62 | <Section className="my-8 text-center"> |
| 63 | <Link |
| 64 | className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline" |
| 65 | href={url} |
| 66 | > |
| 67 | View Comment |
| 68 | </Link> |
| 69 | </Section> |
| 70 | <Text className="text-sm leading-6 text-black"> |
| 71 | or copy and paste this URL into your browser: |
| 72 | </Text> |
| 73 | <Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline"> |
| 74 | {url.replace(/^https?:\/\//, "")} |
no outgoing calls
no test coverage detected