Files
Trilium/apps/website/src/components/DownloadButton.tsx

18 lines
490 B
TypeScript
Raw Normal View History

import { getRecommendedDownload } from "../download-helper";
2025-09-26 23:32:09 +03:00
import "./DownloadButton.css";
interface DownloadButtonProps {
big?: boolean;
}
const { architecture, platform, url } = getRecommendedDownload();
export default function DownloadButton({ big }: DownloadButtonProps) {
return (
<a className={`download-button ${big ? "big" : ""}`} href={url}>
Download now{" "}
<span class="platform">{platform} {architecture}</span>
</a>
)
}