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