Sanitized mirror from private repository - 2026-04-19 07:39:14 UTC
Some checks failed
Documentation / Build Docusaurus (push) Failing after 18m8s
Documentation / Deploy to GitHub Pages (push) Has been skipped

This commit is contained in:
Gitea Mirror Bot
2026-04-19 07:39:14 +00:00
commit d6eb5dcb1e
1437 changed files with 362941 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
"use client";
import { useState, useEffect } from "react";
export function RefreshIndicator({ interval = 60 }: { interval?: number }) {
const [countdown, setCountdown] = useState(interval);
useEffect(() => {
const timer = setInterval(() => {
setCountdown(prev => prev <= 1 ? interval : prev - 1);
}, 1000);
return () => clearInterval(timer);
}, [interval]);
return (
<span className="text-[9px] text-muted-foreground tabular-nums">
{countdown}s
</span>
);
}