1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-21 05:58:10 +00:00
trezor-wallet/src/js/components/common/LoaderCircle.js
2018-07-30 12:52:13 +02:00

21 lines
675 B
JavaScript

/* @flow */
import React from 'react';
export default (props: { size: string, label?: string }): React$Element<string> => {
const style = {
width: `${props.size}px`,
height: `${props.size}px`,
};
return (
<div className="loader-circle" style={style}>
<p>{ props.label }</p>
<svg className="circular" viewBox="25 25 50 50">
<circle className="route" cx="50" cy="50" r="20" fill="none" stroke="" strokeWidth="1" strokeMiterlimit="10" />
<circle className="path" cx="50" cy="50" r="20" fill="none" strokeWidth="1" strokeMiterlimit="10" />
</svg>
</div>
);
};