import { useState } from 'react' import { RefreshClockwiseIcon } from './icons' import useMangoStore from '../stores/useMangoStore' import Tooltip from './Tooltip' const ManualRefresh = ({ className = '' }) => { const [spin, setSpin] = useState(false) const actions = useMangoStore((s) => s.actions) const handleRefreshData = async () => { setSpin(true) await actions.fetchMarginAccounts() await actions.fetchWalletTokens() await actions.fetchTradeHistory() setSpin(false) } return (