12 lines
550 B
TypeScript
12 lines
550 B
TypeScript
import { getCmsDocument, DEFAULT_DOWNLOAD_LINKS, DownloadLinksContent } from '../../lib/cms';
|
|
import { DownloadHubClient } from '../../components/download-hub-client';
|
|
|
|
export default async function DownloadPage() {
|
|
const content = await getCmsDocument<DownloadLinksContent>('download_links', DEFAULT_DOWNLOAD_LINKS);
|
|
const versionInfo = content.version_name
|
|
? `v${content.version_name}${content.build_number ? ` (build ${content.build_number})` : ''}`
|
|
: '';
|
|
|
|
return <DownloadHubClient content={content} versionInfo={versionInfo} />;
|
|
}
|