mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-24 03:08:13 +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;
|