mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-29 03:13:45 +01:00
19 lines
360 B
JavaScript
19 lines
360 B
JavaScript
import React from 'react';
|
|
import StyledWrapper from './StyledWrapper';
|
|
|
|
// Todo: Size, Color config support
|
|
const Spinner = ({size, color, children}) => {
|
|
return (
|
|
<StyledWrapper>
|
|
<div className="animate-spin"></div>
|
|
{children &&
|
|
<div>
|
|
{children}
|
|
</div>
|
|
}
|
|
</StyledWrapper>
|
|
)
|
|
};
|
|
|
|
export default Spinner;
|