import { render as reactEmailRender } from "@react-email/components";
import { ReactElement } from "react";

/**
 * Renders a React email template to HTML.
 */
export async function render(
  template: ReactElement,
  options?: any,
): Promise<string> {
  return reactEmailRender(template, options);
}

// Export Components
export * from "./components/MintelLogo";

// Export Layouts
export * from "./layouts/BaseLayout";
export * from "./layouts/MintelLayout";
export * from "./layouts/ClientLayout";

// Export Templates
export * from "./templates/ContactFormNotification";
export * from "./templates/ConfirmationMessage";
export * from "./templates/FollowUpTemplate";
export * from "./templates/ProjectEstimateTemplate";
export * from "./templates/SiteAuditTemplate";
