src/examples/wallets/WithUi.tsx

Every source

src/examples/wallets/WithUi.tsx
'use client'

import { WalletManager, useAuth } from '@synqauth/react'

// Wallets with Synq's UI: WalletManager names a wallet or makes it the
// primary one. Adding a wallet goes through the hosted page, where the
// person signs with it, so the account holds only wallets they control.
export function WalletsWithUi() {
  const { link } = useAuth()
  return (
    <>
      <WalletManager />
      <button type="button" onClick={() => void link('wallet')}>
        Add a wallet
      </button>
    </>
  )
}