'use client' import { ratioOceanToAsi, ratioAgixToAsi, ratioFetToAsi, tokens } from '@/constants' import { fetcher } from '@/utils' import { Result } from '@/components/ResultRow' import stylesShared from './styles.module.css' import { useState } from 'react' import useSWR from 'swr' import { useDebounce } from 'use-debounce' import { usePrices } from '@/hooks' import { FormAmount, type Token } from '@/components/FormAmount' export function Swap() { const { prices, isValidating: isValidatingPrices } = usePrices() const [amount, setAmount] = useState(100) const [debouncedAmount] = useDebounce(amount, 500) const [token, setToken] = useState('ocean') const { data: dataSwapOceanToAgix, isValidating: isValidatingOceanToAgix } = useSWR( `/api/quote/?tokenIn=${tokens[0]}&tokenOut=${tokens[2]}&amountIn=${debouncedAmount}`, fetcher ) const { data: dataSwapOceanToFet, isValidating: isValidatingOceanToFet } = useSWR( `/api/quote/?tokenIn=${tokens[0]}&tokenOut=${tokens[1]}&amountIn=${debouncedAmount}`, fetcher ) return (

Swapping{' '} {' '} right now gets you:

) }