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