2025-09-26 23:28:58 +03:00
|
|
|
import { getRecommendedDownload } from "../download-helper";
|
2025-09-26 23:32:09 +03:00
|
|
|
import "./DownloadButton.css";
|
2025-09-27 12:41:33 +03:00
|
|
|
import Button from "./Button";
|
|
|
|
|
import downloadIcon from "../assets/boxicons/bx-arrow-in-down-square-half.svg?raw";
|
2025-09-26 23:28:58 +03:00
|
|
|
|
|
|
|
|
interface DownloadButtonProps {
|
|
|
|
|
big?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-27 12:41:33 +03:00
|
|
|
const { name, url } = getRecommendedDownload();
|
2025-09-26 23:28:58 +03:00
|
|
|
|
|
|
|
|
export default function DownloadButton({ big }: DownloadButtonProps) {
|
|
|
|
|
return (
|
2025-09-27 12:41:33 +03:00
|
|
|
<Button
|
2025-09-27 14:27:31 +03:00
|
|
|
className={`download-button desktop-only ${big ? "big" : ""}`}
|
2025-09-27 12:41:33 +03:00
|
|
|
href={url}
|
|
|
|
|
iconSvg={downloadIcon}
|
|
|
|
|
text={<>
|
|
|
|
|
Download now{" "}
|
|
|
|
|
<span class="platform">for {name}</span>
|
|
|
|
|
</>}
|
|
|
|
|
/>
|
2025-09-26 23:28:58 +03:00
|
|
|
)
|
|
|
|
|
}
|