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