"use client"; import {useUpdateCheck} from "../hooks/use-update-check"; import {useSidebar, SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuItem} from "@/components/ui/sidebar"; import {X, ArrowUpCircle, MoveRight} from "lucide-react"; import Link from "next/link"; export const UpdateNotification = () => { const {isUpdateAvailable, newRelease, dismissUpdate} = useUpdateCheck(); const {state} = useSidebar(); if (!isUpdateAvailable || !newRelease || state !== "expanded") { return null; } return (
Update available v{newRelease.tag_name.replace(/^v/, "")}
See what's new
); };