import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/accordion" import { useTranslations } from "next-intl"; interface item { version: string; date: string; changes: { name: string; tag?: string }[]; } const ChangeLogPage = () => { const t = useTranslations("Changelog") const items: item[] = [ { version: "Version 2.0.1", date: "1 February 2023", changes: [ { name: "Monochrome mode", tag: "added", }, { name: "Axios configuration", tag: "fixed", }, { name: "Other minor issues", tag: "fixed", } ] }, { version: "Version 2.0.0", date: "24 January 2023", changes: [ { name: "Change log page added.", tag: "added", }, { name: "Badge added in sidebar.", tag: "added", }, { name: "Vuex replaced with pinia", tag: "update", }, { name: "Webpack replaced with Vite.", tag: "update", }, { name: "Other minor issues", tag: "fixed", } ] }, { version: "Version 1.0.1 ", date: "3 January 2023", changes: [ { name: "RTL version added.", tag: "added", }, { name: "Sidebar updated.", tag: "update", }, { name: "Other minor issues", tag: "fixed", } ] }, { version: "Version 1.0.0 ", date: "29 December 2022", changes: [ { name: "Initial Release", } ] } ]; return (
{t("version", { defaultValue: "Version" })} New
{ items.map((item, index) => (
{item.version} - Published on {item.date}
{item.changes.map((data, j) => (
{data.name} {data.tag}
))}
)) }
{t("changelog", { defaultValue: "Changelog" })}
{t("versionHistory", { defaultValue: "Version History" })}
    {items.map((item, i) => (
  • {item.version} {item.date}
  • ))}
); }; export default ChangeLogPage;