mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-22 19:20:17 +03:00
15 lines
260 B
JavaScript
15 lines
260 B
JavaScript
import './loader.css';
|
|
|
|
function Loader({ abrupt, hidden }) {
|
|
return (
|
|
<div
|
|
class={`loader-container ${abrupt ? 'abrupt' : ''} ${
|
|
hidden ? 'hidden' : ''
|
|
}`}
|
|
>
|
|
<div class="loader" />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Loader;
|