const [lottieGif, setLottieGif] = useState(null);
const paramNfc = {
container: refGif.current,
renderer: 'svg',
loop: false,
autoplay: true,
animationData: nfcError
};
setLottieGif(lottie.loadAnimation(paramNfc));
const handleClose = () => {
lottieGif && lottieGif.destroy();
setLottieGif(null);
};