import {
LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ReferenceLine, ResponsiveContainer,
} from "recharts";
export default function FrameChart({ scores }) {
if (!scores || scores.length === 0) return null;
const data = scores.map((score, i) => ({ seq: i + 1, score: Math.round(score * 100) }));
return (
Sequence scores(How fake does each short clip look)
`${v}%`}
tick={{ fill: "#94a3b8", fontSize: 12 }}
axisLine={false}
tickLine={false}
width={40}
/>
[`${v}%`, "Fake"]}
contentStyle={{
background: "#fff",
border: "1px solid #e2e8f0",
borderRadius: 12,
boxShadow: "0 4px 12px rgba(0,0,0,0.06)",
fontSize: 13,
}}
labelFormatter={(l) => `#${l}`}
/>
{
const { cx, cy, payload } = props;
return (
= 50 ? "#ef4444" : "#6366f1"}
stroke="#fff"
strokeWidth={2}
/>
);
}}
activeDot={{ r: 7, strokeWidth: 0 }}
/>
);
}