import React from "react"; import { Eye, Mail } from "lucide-react"; import { Button } from "../ui/button"; import { Modal } from "../ui/modal"; import { __ } from "../../lib/i18n"; export type EmailPreviewModalProps = { open: boolean; onClose: () => void; subject: string; body: string; }; /** * Email preview: subject + HTML body in an iframe. * Uses the shared Yatra modal shell: {@link Modal} from `components/ui/modal` (`yatra-model-ui`). */ export const EmailPreviewModal: React.FC = ({ open, onClose, subject, body, }) => ( {__("Email Preview", "yatra")} } description={__("Preview with sample data", "yatra")} maxWidthClassName="max-w-6xl w-[95vw]" panelClassName="yatra-model-ui flex flex-col max-h-[90vh]" bodyClassName="flex flex-1 min-h-0 flex-col px-0 py-0" bodyScrollClassName="flex min-h-0 flex-1 flex-col overflow-hidden" footer={
} >
{__("Subject", "yatra")}

{subject}