feat: Extract UI sub-components from ModerationQueue

This commit is contained in:
gpt-engineer-app[bot]
2025-10-12 23:10:40 +00:00
parent 0d0e352a1e
commit 5a84e2a469
9 changed files with 675 additions and 410 deletions

View 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>
);
};