🎨 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: PlatformMeta
- selectedPool: PoolToken
- defaultCreatorFee: number
- defaultJackpotFee: number
- setDefaultJackpotFee: (defaultJackpotFee: number) => void
- setPool: (tokenMint: PublicKey | string, authority?: PublicKey | string) => void
- setToken: (tokenMint: PublicKey | string) => void
- clientSeed: string
- setClientSeed: (clientSeed: string) => void
- games: Deprecated
- tokens: Deprecated
 
const {
  platform,
  selectedPool,
  defaultCreatorFee,
  defaultJackpotFee,
  setDefaultJackpotFee,
  setPool,
  setToken,
  clientSeed,
  setClientSeed,
} = useContext(GambaPlatformContext);🔄
🏷️ Token Metadata
🏷️
🏷️