2025-11-29 23:13:05 +03:00

15 lines
402 B
JavaScript

import {useExplorerApi} from '@stellar-expert/ui-framework'
export function useDexOffer(offerId) {
return useExplorerApi('offer/' + offerId, {
processResult(res) {
if (res.error) {
res.id = offerId
if (res.status === 404) {
res.nonExistentOffer = true
}
}
return res
}
})
}