Spaces:
Sleeping
Sleeping
Download components/LoadingSpinner.tsx from pvyas96/learn_geoscience_quiz_maker: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/spaces/pvyas96/learn_geoscience_quiz_maker/resolve/main/components/LoadingSpinner.tsx
- Command line
-
hf download hf://spaces/pvyas96/learn_geoscience_quiz_maker/components/LoadingSpinner.tsx
-
curl -L -o LoadingSpinner.tsx https://huggingface.co/spaces/pvyas96/learn_geoscience_quiz_maker/resolve/main/components/LoadingSpinner.tsx
517 Bytes
| import React from 'react'; | |
| interface LoadingSpinnerProps { | |
| message: string; | |
| } | |
| const LoadingSpinner: React.FC<LoadingSpinnerProps> = ({ message }) => { | |
| return ( | |
| <div className="flex flex-col items-center justify-center p-10"> | |
| <div className="w-12 h-12 border-4 border-t-4 border-blue-500 border-t-transparent rounded-full animate-spin"></div> | |
| <p className="mt-4 text-xl text-gray-600 dark:text-gray-300">{message}</p> | |
| </div> | |
| ); | |
| }; | |
| export default LoadingSpinner; | |