mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-20 05:00:29 -06:00
25 lines
783 B
TypeScript
25 lines
783 B
TypeScript
import { Container, Heading, Text } from "@react-email/components";
|
|
import React from "react";
|
|
|
|
interface EmbedSurveyPreviewEmailProps {
|
|
html: string;
|
|
environmentId: string;
|
|
}
|
|
|
|
export function EmbedSurveyPreviewEmail({
|
|
html,
|
|
environmentId,
|
|
}: EmbedSurveyPreviewEmailProps): React.JSX.Element {
|
|
return (
|
|
<Container>
|
|
<Heading>Preview Email Embed</Heading>
|
|
<Text>This is how the code snippet looks embedded into an email:</Text>
|
|
<Text className="text-sm">
|
|
<b>Didn't request this?</b> Help us fight spam and forward this mail to hola@formbricks.com
|
|
</Text>
|
|
<div dangerouslySetInnerHTML={{ __html: html }} />
|
|
<Text className="text-center text-sm text-slate-700">Environment ID: {environmentId}</Text>
|
|
</Container>
|
|
);
|
|
}
|