"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const components_1 = require("@react-email/components");
const style_1 = require("../_libs/style");
function PoweredBy(props) {
    const content = props.url ? ((0, jsx_runtime_1.jsx)(components_1.Link, { href: props.url, target: "_blank", style: Object.assign(Object.assign({}, style_1.linkStyle), { color: '#898989' }), children: props.name })) : (props.name);
    return ((0, jsx_runtime_1.jsxs)(components_1.Text, { style: {
            textAlign: 'center',
            color: '#898989',
            fontSize: 12,
            margin: 0,
        }, children: ["Powered by ", content] }));
}
exports.default = PoweredBy;
