aptos-linesprinter-game
v0.1.2
Published
This package enables the integration of the Linesprinter game into any React application, making it easy to showcase the game.
Downloads
5
Maintainers
Readme
Linesprinter Game Package
This package enables the integration of the Linesprinter game into any React application, making it easy to showcase the game.
Usage
Installation
npm i aptos-linesprinter-game
Component
import React from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { LinesprinterGame } from "aptos-linesprinter-game";
function Linesprinter() {
const { account, signAndSubmitTransaction } = useWallet();
const setConnectModalOpen = async (isOpen) => {
console.log(isOpen);
};
return (
<LinesprinterGame
signAndSubmitTransaction={signAndSubmitTransaction}
setConnectModalOpen={setConnectModalOpen}
accountAddress={account?.address?.toString()}
/>
);
}
export default Linesprinter;