1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-16 08:29:41 +07:00
verdaccio-ui/src/components/Spinner/Spinner.tsx
2019-10-06 18:31:30 +02:00

17 lines
309 B
TypeScript

import React from 'react';
import { Circular, Wrapper } from './styles';
interface Props {
size?: number;
centered?: boolean;
}
const Spinner: React.FC<Props> = ({ size = 50, centered = false }) => (
<Wrapper centered={centered}>
<Circular size={size} />
</Wrapper>
);
export default Spinner;