| 1 |
import CircularProgress from '@elementor/ui/CircularProgress'; |
| 2 |
import Box from '@elementor/ui/Box'; |
| 3 |
|
| 4 |
const Spinner = () => { |
| 5 |
const style = { |
| 6 |
position: 'fixed', |
| 7 |
top: 0, |
| 8 |
left: 0, |
| 9 |
width: '100%', |
| 10 |
height: '100%', |
| 11 |
display: 'flex', |
| 12 |
justifyContent: 'center', |
| 13 |
alignItems: 'center', |
| 14 |
background: 'rgba(255, 255, 255, 0.8)', // Optional: to add a semi-transparent background |
| 15 |
zIndex: 1000, // Optional: to ensure the spinner is on top |
| 16 |
}; |
| 17 |
|
| 18 |
return ( |
| 19 |
<Box style={ style }> |
| 20 |
<CircularProgress /> |
| 21 |
</Box> |
| 22 |
); |
| 23 |
}; |
| 24 |
|
| 25 |
export default Spinner; |
| 26 |
|