import { DocumentSearchIcon } from "@heroicons/react/outline"; import Link from "next/link"; import { FaReact, FaVuejs } from "react-icons/fa"; import { toast } from "react-toastify"; import { classNames } from "../../lib/utils"; import StandardButton from "../StandardButton"; export default function FormCode({ formId }) { const libs = [ { id: "react", name: "React", href: `/forms/${formId}/form/react`, bgColor: "bg-blue", version: "v0.1", icon: FaReact, }, { id: "reactNative", name: "React Native", comingSoon: true, href: "#", bgColor: "bg-ui-gray-light", icon: FaReact, }, { id: "vue", name: "Vue.js", comingSoon: true, href: "#", bgColor: "bg-ui-gray-light", icon: FaVuejs, }, { id: "docs", name: "Docs", href: "https://docs.snoopforms.com", bgColor: "bg-ui-gray-dark", icon: DocumentSearchIcon, target: "_blank", }, ]; return ( <>
To send all form submissions to this dashboard, update the form ID in
the {" component.
{"<"}
SnoopForm
{""}
{`domain="${window?.location.host}"`}
{`protocol="${window?.location.protocol.replace(
":",
""
)}"`}
{`formId="${formId}"`}
{">"}
{`{...}`}
{""}
SnoopForm
{">"}
Build your form with the code library of your choice. Manage your data in this dashboard.
{lib.name}
{lib.comingSoon && (coming soon
Your form is running? Go to{" "} Pipelines