import { motion } from 'framer-motion'
import { CheckCircle2, XCircle } from 'lucide-react'
function ResultDisplay({ result, image1, image2 }) {
const isMatch = result.match
const similarity = Math.round(result.similarity * 100)
return (
{/* Background glow effect */}
{/* Content */}
{/* Match Status Header */}
{isMatch ? (
) : (
)}
{isMatch ? 'Match Found' : 'No Match'}
{isMatch
? 'The faces belong to the same person'
: 'The faces belong to different people'
}
{/* Face Comparison */}
{/* Image 1 */}
{/* Percentage Circle */}
{similarity}%
{/* Image 2 */}
{/* Similarity Meter */}
Similarity Score
{similarity}%
0%
Threshold: 70%
100%
)
}
export default ResultDisplay