forked from programandopy/hackathon-desafio-ai
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLoaderModal.jsx
More file actions
23 lines (21 loc) · 904 Bytes
/
LoaderModal.jsx
File metadata and controls
23 lines (21 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const LoaderModal = ({ isOpen, text ="Cargando" }) => {
if (!isOpen) {
return null;
}
return (
<div className="absolute top-0 left-0 z-50 w-screen h-screen flex items-center justify-center bg-slate-500/30">
<div className="bg-white border py-2 px-5 rounded-lg flex items-center flex-col">
<div className="loader-dots block relative w-20 h-5 mt-2">
<div className="absolute top-0 mt-1 w-3 h-3 rounded-full bg-sky-500"></div>
<div className="absolute top-0 mt-1 w-3 h-3 rounded-full bg-sky-500"></div>
<div className="absolute top-0 mt-1 w-3 h-3 rounded-full bg-sky-500"></div>
<div className="absolute top-0 mt-1 w-3 h-3 rounded-full bg-sky-500"></div>
</div>
<div className="text-gray-500 text-xs font-medium mt-2 text-center">
{text}
</div>
</div>
</div>
)
};
export default LoaderModal;