🎨 gamba-react-ui-v2
🎨
Gamba React UI library with components, hooks, for building Gamba apps
npm install gamba-react-ui-v2
🖥️ Components
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🖥️
🛠️ Utilities and Hooks
🛠️
🛠️
useGambaPlatformContext
Provides the current platform-specific context, including platform fees, selected tokens, and the current creator fee.
const {
platform,
selectedPool,
defaultCreatorFee,
defaultJackpotFee,
setDefaultJackpotFee,
setPool,
setToken,
clientSeed,
setClientSeed,
} = useGambaPlatformContext();
🛠️
🛠️
🛠️
⚠️
🛠️
🛠️
🛠️
🛠️
⚠️
⚠️
🔄 Contexts
🔄
GambaPlatformContext
Provides platform-specific information like fees, tokens, and pool authority.
-
Props:
platform
: PlatformMetaselectedPool
: PoolTokendefaultCreatorFee
: numberdefaultJackpotFee
: numbersetDefaultJackpotFee
: (defaultJackpotFee: number) => voidsetPool
: (tokenMint: PublicKey | string, authority?: PublicKey | string) => voidsetToken
: (tokenMint: PublicKey | string) => voidclientSeed
: stringsetClientSeed
: (clientSeed: string) => voidgames
: Deprecatedtokens
: Deprecated
const {
platform,
selectedPool,
defaultCreatorFee,
defaultJackpotFee,
setDefaultJackpotFee,
setPool,
setToken,
clientSeed,
setClientSeed,
} = useContext(GambaPlatformContext);
🔄
🏷️ Token Metadata
🏷️
🏷️