UNPKG

@theguild/components

Version:
33 lines (32 loc) 898 B
"use client"; import { jsx } from "react/jsx-runtime"; import { cn } from "../cn"; import { CallToAction } from "./call-to-action"; const openCrisp = (event) => { if (window.$crisp) { window.$crisp.push(["do", "chat:open"]); event.preventDefault(); } }; function ContactTextLink(props) { return /* @__PURE__ */ jsx( "a", { ...props, className: cn( "hive-focus -m-2 rounded p-2 font-medium hover:text-blue-700 hover:underline dark:hover:text-blue-100", props.className ), href: "https://the-guild.dev/contact", onClick: openCrisp, children: props.children || "Contact Us" } ); } function ContactButton(props) { return /* @__PURE__ */ jsx(CallToAction, { href: "https://the-guild.dev/contact", onClick: openCrisp, ...props, children: props.children || "Contact Us" }); } export { ContactButton, ContactTextLink };