mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 20:51:17 -05:00
Refactor code structure and remove redundant changes
This commit is contained in:
24
src-old/components/moderation/AutoRefreshIndicator.tsx
Normal file
24
src-old/components/moderation/AutoRefreshIndicator.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
interface AutoRefreshIndicatorProps {
|
||||
enabled: boolean;
|
||||
intervalSeconds: number;
|
||||
mode?: 'polling' | 'realtime';
|
||||
}
|
||||
|
||||
export const AutoRefreshIndicator = ({
|
||||
enabled,
|
||||
intervalSeconds,
|
||||
mode = 'polling'
|
||||
}: AutoRefreshIndicatorProps) => {
|
||||
if (!enabled) return null;
|
||||
|
||||
return (
|
||||
<div className="flex items-center gap-2 text-xs text-muted-foreground px-1">
|
||||
<div className="flex items-center gap-1">
|
||||
<div className="w-2 h-2 rounded-full bg-green-500 animate-pulse" />
|
||||
<span>Auto-refresh active</span>
|
||||
</div>
|
||||
<span>•</span>
|
||||
<span>Checking every {intervalSeconds}s</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user