@forbespro/lead-agent
Version:
Lead Chat Agent React Component
41 lines (40 loc) • 1.34 kB
JavaScript
import { jsx as e, jsxs as o } from "react/jsx-runtime";
const i = ({
url: r,
displayText: l,
openInNewTab: n = !0
}) => /* @__PURE__ */ e("div", { "aria-label": "External link container", className: "external-link-container fpl-my-2", children: /* @__PURE__ */ o(
"a",
{
href: r,
"aria-label": `Open link for ${l}`,
target: n ? "_blank" : "_self",
rel: "noopener noreferrer",
className: "fpl-inline-flex fpl-items-center fpl-px-4 fpl-py-2 fpl-border fpl-border-transparent fpl-text-sm fpl-font-medium fpl-rounded-md fpl-shadow-sm fpl-text-white fpl-bg-indigo-600 hover:fpl-bg-indigo-700 focus:fpl-outline-none focus:fpl-ring-2 focus:fpl-ring-offset-2 focus:fpl-ring-indigo-500",
children: [
l,
/* @__PURE__ */ e(
"svg",
{
className: "fpl-ml-2 fpl--mr-1 fpl-h-4 fpl-w-4",
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
viewBox: "0 0 24 24",
stroke: "currentColor",
children: /* @__PURE__ */ e(
"path",
{
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: 2,
d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
}
)
}
)
]
}
) });
export {
i as default
};