import React, { useState, useEffect } from 'react'; import { useLocation } from 'react-router-dom'; import { scanTextAsync, downloadForensicReport, type TextResult } from '../../services/textService'; import { useAuth } from '../../hooks/useAuth.tsx'; const ForensicGauge: React.FC<{ score: number; label: string; color: string; sublabel: string; size?: "sm" | "lg" | "xl"; }> = ({ score, label, color, sublabel, size = "lg" }) => { const radius = size === "xl" ? 90 : size === "lg" ? 75 : 35; const circumference = 2 * Math.PI * radius; const strokeDashoffset = circumference - (score / 100) * circumference; const viewSize = size === "xl" ? 220 : size === "lg" ? 200 : 100; return (
Forensic linguistic audit engine
{result.forensic_reasoning || "No anomalous linguistic patterns detected during structural and semantic trajectory audit."}