bruno/renderer/components/Spinner/index.js

19 lines
360 B
JavaScript
Raw Normal View History

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;