"use client"; import { cn } from "@/lib/utils"; import { useState } from "react"; import { Button } from "@/components/ui/button"; import { XIcon } from "@/components/ui/phosphor-icons"; const latestChange = { badge: "CHANGELOG", title: "Product update", description: "Performance boosts and UI polish.", // TIP: Use a single line of text for the description. (max 5 words) readMore: { href: "#", label: "Learn more" }, } as const; export function LatestChange() { const [isOpen, setIsOpen] = useState(true); if (!isOpen) { return null; } return (
{latestChange.badge}

{latestChange.title}

{latestChange.description}
); }