plazbot
Version:
Official Plazbot SDK for creating AI agents for WhatsApp, portals, and developers.
14 lines (13 loc) • 838 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { usePlazbotContext } from '../../context/PlazbotContext';
export function PoweredBy({ label = 'Powered by', brandName = 'Plazbot', href = 'https://plazbot.com', style }) {
const { theme } = usePlazbotContext();
return (_jsxs("div", { style: {
textAlign: 'center',
padding: '6px',
fontSize: '11px',
color: theme.textSecondary,
fontFamily: theme.fontFamily,
...style,
}, children: [label, ' ', href ? (_jsx("a", { href: href, target: "_blank", rel: "noopener noreferrer", style: { color: theme.primaryColor, textDecoration: 'none', fontWeight: 500 }, children: brandName })) : (_jsx("span", { style: { fontWeight: 500, color: theme.primaryColor }, children: brandName }))] }));
}