saleor-apps-redis_apl/apps/emails-and-messages/src/modules/smtp/ui/mjml-preview.tsx
Krzysztof Wolski 44741aa74e Update E&M Provider UI (#459)
* update to macaw next
* update ui to new design
2023-05-24 13:25:05 +02:00

17 lines
291 B
TypeScript

import React from "react";
type Props = {
value?: string;
};
export const MjmlPreview = ({ value }: Props) => {
return (
<>
{value?.length ? (
<div dangerouslySetInnerHTML={{ __html: value }} />
) : (
<p>No template preview</p>
)}
</>
);
};