import { useQuote } from '@relayprotocol/relay-kit-hooks'
import { useWalletClient } from 'wagmi'
import { getClient } from '@relayprotocol/relay-sdk'
const queryOptions = {...} //Query options from tanstack
const walletClient = useWalletClient()
const relayClient = getClient() //Either use getClient, createClient or useRelayClient from the ui kit
const {
  data: quote,
  isLoading: isFetchingQuote,
  executeQuote,
  error
} = useQuote(
  relayClient ? relayClient : undefined,
  walletClient.data,
{
  user: address,
  originChainId: 1,
  destinationChainId: 10,
  originCurrency: "0x0000000000000000000000000000000000000000",
  destinationCurrency: "0x0000000000000000000000000000000000000000",
  tradeType: "EXACT_INPUT",
  amount: "10000000"
},
() => {
  console.log("Request Triggered!")
},
() => {
  console.log("Response Returned!")
},
  queryOptions
)