• Provider component for RewardKit that manages theme, modal state, and configuration Wraps application with necessary context and providers for RewardKit functionality.

    Parameters

    Returns Element

    Provider component with configured context

    'use client'

    function App() {
    <RewardKitProvider
    theme={{ primary: "#ff0000", ... }}
    defaultOpen={false}
    config={{
    deployerAddress?: "0x123...",
    boostId?: "11155111:0x378632819F39C74c4F56B1429E760739c5fb51b7:33",
    budgetAccount?: "0xd8f8d805f85518b2aedfe3148135bb6dce352aaf",
    chainId?: 11155111,
    targetContract?: "0xdcffce9d8185706780a46cf04d9c6b86b3451497",
    tokens?: ["7777777:0x777777722d078c97c6ad07d9f36801e653e356ae"],
    testnetsEnabled?: true,
    onConnectWalletClick: () => openConnectModal()
    }}
    >
    <RestOfApplication />
    </RewardKitProvider>
    }