mirror of
https://github.com/SomboChea/ui
synced 2024-06-28 22:15:32 +07:00
19 lines
346 B
JavaScript
19 lines
346 B
JavaScript
/**
|
|
* @prettier
|
|
* @flow
|
|
*/
|
|
|
|
import React from 'react';
|
|
import type { Node } from 'react';
|
|
|
|
import { IProps } from './types';
|
|
import { Wrapper, Circular } from './styles';
|
|
|
|
const Spinner = ({ size = 50, centered = false }: IProps): Node => (
|
|
<Wrapper centered={centered}>
|
|
<Circular size={size} />
|
|
</Wrapper>
|
|
);
|
|
|
|
export default Spinner;
|