mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
18 lines
478 B
TypeScript
18 lines
478 B
TypeScript
"use client";
|
|
import React from "react";
|
|
import { releaseNotes } from "@/lib/release-notes";
|
|
|
|
export default function ReleaseNotePage() {
|
|
React.useEffect(() => {
|
|
const searchParams = new URLSearchParams(window.location.search);
|
|
const version = searchParams.get("v");
|
|
if (version === "latest") {
|
|
return window.location.replace(
|
|
`/release-notes/${releaseNotes[0].version}`,
|
|
);
|
|
}
|
|
window.location.replace(`/release-notes#${version}`);
|
|
}, []);
|
|
|
|
return null;
|
|
}
|