Spaces:
Sleeping
Sleeping
File size: 1,419 Bytes
f41486b de8b5dc f41486b 5086173 f41486b de8b5dc f41486b 5086173 f41486b 5086173 f41486b 5086173 f41486b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import React from 'react';
import { motion } from 'framer-motion';
import { X } from 'lucide-react';
const LoadingOverlay = ({ onCancel }) => {
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
className="fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/80 backdrop-blur-md"
>
<div className="text-center space-y-8">
<motion.div
animate={{ rotate: 360 }}
transition={{ duration: 2, repeat: Infinity, ease: "linear" }}
className="w-24 h-24 mx-auto border-4 border-blue-500/30 border-t-blue-500 rounded-full"
/>
<div className="space-y-2">
<h3 className="text-2xl font-bold text-white">Analyzing Damage...</h3>
<p className="text-gray-400">Our AI is scanning the vehicle</p>
</div>
<button
onClick={onCancel}
className="flex items-center gap-2 px-6 py-3 bg-white/10 hover:bg-white/20 rounded-full text-white transition-all mx-auto"
>
<X className="w-5 h-5" />
<span>Cancel Analysis</span>
</button>
</div>
</motion.div>
);
};
export default LoadingOverlay;
|