"use client"; import { useState } from "react"; import classNames from "classnames"; import { Button } from "@/components/ui/button"; import Loading from "@/components/loading"; import { History, ChevronUp, ChevronDown, MousePointerClick, } from "lucide-react"; interface HistoryNotificationProps { /** Whether the historical version notification should be visible */ isVisible: boolean; /** Whether the version promotion is in progress */ isPromotingVersion: boolean; /** Function to promote the current historical version */ onPromoteVersion: () => void; /** Function to go back to the current version */ onGoBackToCurrent: () => void; /** Additional CSS classes */ className?: string; } export const HistoryNotification = ({ isVisible, isPromotingVersion, onPromoteVersion, onGoBackToCurrent, className, }: HistoryNotificationProps) => { const [isCollapsed, setIsCollapsed] = useState(false); if (!isVisible) { return null; } return (
Historical Version
You're viewing a previous version of this project. Promote this version to make it current and deploy it live.