mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-25 03:41:02 +00:00
19 lines
415 B
TypeScript
19 lines
415 B
TypeScript
import Lottie from "lottie-react";
|
|
|
|
import downloadingAnimation from "@renderer/assets/lottie/downloading.json";
|
|
|
|
export interface DownloadIconProps {
|
|
isDownloading: boolean;
|
|
}
|
|
|
|
export function DownloadIcon({ isDownloading }: DownloadIconProps) {
|
|
return (
|
|
<Lottie
|
|
animationData={downloadingAnimation}
|
|
loop={isDownloading}
|
|
autoplay={isDownloading}
|
|
style={{ width: 16 }}
|
|
/>
|
|
);
|
|
}
|