import { useRef } from "react"; import usePluginSettings from "./settings"; import { useNavigate } from "react-router-dom"; export default function SettingsPage() { const navigate = useNavigate(); const [settings, setSettings, _1, _2, _3] = usePluginSettings(); const apiKeyRef = useRef(null); const addressRef = useRef(null); const onSave = () => { setSettings({ apiKey: apiKeyRef.current?.value || "", address: addressRef.current?.value || "", }); }; return (
Settings
); }