open-index/open-npm huggingface dataset:
npm package: @okwallet/wagmi-okx-connector
Description: wagmi connector for okx  wallet
Latest version: 1.0.1

## okx wagmi connector

```typescript jsx
import { useAccount, useConnect, useDisconnect } from 'wagmi'
import { OKXConnector } from '@okwallet/wagmi-okx-connector'

function Profile() {
  const { address, isConnected } = useAccount()
  const { connect } = useConnect({
    connector: new OKXConnector(),
  })
  const { disconnect } = useDisconnect()

  if (isConnected)
    return (
      <div>
        Connected to {address}
        <button onClick={() => disconnect()}>Disconnect</button>
      </div>
    )
  return <button onClick={() => connect()}>Connect Wallet</button>
}

```