import React, { useRef } from 'react';
import { OverlayPanel } from 'primereact/overlaypanel';
import ZapForm from './ZapForm';
import { ProgressSpinner } from 'primereact/progressspinner';
const ZapDisplay = ({ zapAmount, event, zapsLoading }) => {
const op = useRef(null);
return (
<>
op.current.toggle(e)}>
{zapsLoading ? (
) : (
zapAmount !== null ? zapAmount :
)}
>
)
}
export default ZapDisplay;