import "./App.css";
import "@getpara/react-sdk-lite/styles.css";
import { ParaSignerProvider, useParaSigner } from "@miden-sdk/para-react";
import { MidenProvider, useSigner, useMiden } from "@miden-sdk/react";
function App() {
return (
);
}
function Content() {
const signer = useSigner();
const { wallet } = useParaSigner();
const { isReady, signerAccountId } = useMiden();
const handleConnect = async () => {
if (signer?.isConnected) {
await signer.disconnect();
} else {
await signer?.connect();
}
};
return (
{signer?.isConnected && (
<>
Wallet: {wallet?.address ?? "—"}
Account: {signerAccountId ?? "—"}
Client ready: {isReady ? "yes" : "no"}
>
)}
);
}
export default App;