/* eslint-disable react/display-name */
import React from 'react'
import { CheckCheckIcon } from 'lucide-react'
import { loadingSpinner } from '../components/ui/loadingSpinner'
export function renderBtnABI(fetchStatus: string) {
return () => {
switch (fetchStatus) {
case 'loading':
return loadingSpinner
case 'success':
return (
<>
Fetch ABI
>
)
case 'error':
return (
<>
X
Retry ABI
>
)
default:
return 'Fetch ABI'
}
}
}