"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActivityNotificationEmail = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const components_1 = require("@react-email/components");
const footer_1 = __importDefault(require("../_components/footer"));
const content_1 = __importDefault(require("../_components/content"));
const layout_1 = __importDefault(require("../_components/layout"));
const header_1 = __importDefault(require("../_components/header"));
const style_1 = require("../_libs/style");
const ActivityNotificationEmail = ({ title, body = '', raw = false, // do not convert body to clickable span
subject, attachments = [], actions = [], appInfo, locale = 'en', severity = 'normal', unsubscribeToken, userInfo, poweredBy, activity, actor, siteDomain, signatureConfig, theme, }) => {
    var _a, _b, _c;
    const fontFamily = ((_a = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _a === void 0 ? void 0 : _a.fontFamily) || 'HelveticaNeue,Helvetica,Arial,sans-serif';
    const h1FontFamily = ((_c = (_b = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _b === void 0 ? void 0 : _b.h1) === null || _c === void 0 ? void 0 : _c.fontFamily) || fontFamily;
    const main = {
        fontFamily,
    };
    return ((0, jsx_runtime_1.jsxs)(layout_1.default, { mainStyle: main, subject: subject, theme: theme, children: [(0, jsx_runtime_1.jsx)(components_1.Preview, { children: subject }), (0, jsx_runtime_1.jsx)(header_1.default, { appInfo: appInfo }), (0, jsx_runtime_1.jsx)(content_1.default, { style: style_1.contentStyle, activity: activity, title: title, content: body, actor: actor, attachments: attachments, actions: actions, siteDomain: siteDomain, locale: locale, severity: severity, raw: raw, userInfo: userInfo, fontFamily: fontFamily, h1FontFamily: h1FontFamily }), (0, jsx_runtime_1.jsx)(footer_1.default, { showCopyright: false, poweredBy: poweredBy, appInfo: appInfo, locale: locale, unsubscribeToken: unsubscribeToken, userInfo: userInfo, signatureConfig: signatureConfig, fontFamily: fontFamily })] }));
};
exports.ActivityNotificationEmail = ActivityNotificationEmail;
exports.default = exports.ActivityNotificationEmail;
