feat: add moderation review dashboard

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-05-14 21:01:57 +07:00
co-authored by Claude Opus 4.7
parent fbf0f11db1
commit ae02556f75
5 changed files with 333 additions and 44 deletions
@@ -0,0 +1,25 @@
import type { MessageRecord } from "../../api/client";
import { MessageCard } from "./MessageCard";
export interface MessageFeedProps {
messages: MessageRecord[];
onReanalyze: (id: string) => void;
}
export function MessageFeed({ messages, onReanalyze }: MessageFeedProps) {
if (messages.length === 0) {
return (
<div className="empty-state">
<p>No messages yet</p>
</div>
);
}
return (
<div className="message-feed">
{messages.map((msg) => (
<MessageCard key={msg.id} message={msg} onReanalyze={onReanalyze} />
))}
</div>
);
}