signal-desktop/ts/components/ProgressBar.tsx
automated-signal 1ae77a32db
Add a backup media download progress bar
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
2024-09-04 12:58:52 +10:00

21 lines
424 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
export function ProgressBar({
fractionComplete,
}: {
fractionComplete: number;
}): JSX.Element {
return (
<div className="ProgressBar">
<div
className="ProgressBar__fill"
style={{
marginInlineEnd: `${(1 - fractionComplete) * 100}%`,
}}
/>
</div>
);
}