import { useYagna } from "@golem-sdk/react"; import { useRef } from "react"; export function ConnectToYagna() { const { setYagnaOptions } = useYagna(); const appKeyInputRef = useRef(null); const urlInputRef = useRef(null); return (

Make sure yagna is running on your local machine. Please follow the instructions in this{" "} quickstart {" "} to learn more about how to install and run yagna.

Make sure to start the process with the --api-allow-origin flag: {`yagna service run --api-allow-origin='${window.location.origin}'`}

); }