mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-28 12:36:41 +07:00
21 lines
565 B
TypeScript
21 lines
565 B
TypeScript
import * as React from 'react';
|
|
|
|
interface Props {
|
|
renderer: {
|
|
info: string,
|
|
progress: number,
|
|
}
|
|
}
|
|
|
|
export const ShotPrefetchDialog = ({ renderer: { info, progress }}: Props) => (
|
|
<div className="control-dialog control-dialog-small left">
|
|
<div className="helper helper-prefetch">
|
|
<div className="dialog-prefetch-stage">{info}</div>
|
|
<div className="dialog-prefetch-progress">
|
|
<div className="progress">
|
|
<div className="bar" style={{ width: `${progress * 100}%` }} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|