import React from 'react';
import { PieChart, Pie, Cell, ResponsiveContainer, Tooltip } from 'recharts';
interface AuthenticityScoreProps {
videoVerificationScore: number;
socialBindingScore: number;
cloneMaturityScore: number;
}
const ScoreBreakdownBar: React.FC<{ label: string; score: number; maxScore: number; color: string }> = ({ label, score, maxScore, color }) => {
const colorVariants: {[key: string]: string} = {
'text-blue-500': 'from-blue-400 to-blue-600',
'text-indigo-500': 'from-indigo-400 to-indigo-600',
'text-green-500': 'from-green-400 to-green-600',
}
return (
{label}
{score} / {maxScore}
);
};
const AuthenticityScore: React.FC = ({ videoVerificationScore, socialBindingScore, cloneMaturityScore }) => {
const totalScore = videoVerificationScore + socialBindingScore + cloneMaturityScore;
const maxTotalScore = 120; // 15 + 45 + 60
const scoreData = [
{ name: 'Score', value: totalScore },
{ name: 'Remaining', value: maxTotalScore - totalScore },
];
const COLORS = ['#3b82f6', '#e5e7eb'];
return (
Authenticity Score
{scoreData.map((entry, index) => (
|
))}
[value, '']} />
{totalScore}
/ {maxTotalScore}
);
};
export default AuthenticityScore;