import { Badge } from "@/components/ui/badge"; import { Card } from "@/components/ui/card"; import type { ChangelogVersion } from "@/lib/changelog/parse-changelog"; const sectionBadgeVariant: Record< string, "success" | "info" | "destructive" | "secondary" > = { Adicionado: "success", Alterado: "info", Corrigido: "destructive", Removido: "secondary", }; function getSectionVariant(type: string) { return sectionBadgeVariant[type] ?? "secondary"; } export function ChangelogTab({ versions }: { versions: ChangelogVersion[] }) { return (
{versions.map((version) => (

v{version.version}

{version.date}
{version.sections.map((section) => (
{section.type}
    {section.items.map((item) => (
  • {item}
  • ))}
))}
))}
); }