import { useCluster } from './hooks/useCluster';
import InputPanel from './components/InputPanel';
import TuningPanel from './components/TuningPanel';
import StatsBar from './components/StatsBar';
import ClusterCard from './components/ClusterCard';
import AnomalyPanel from './components/AnomalyPanel';
import ScatterPlot from './components/ScatterPlot';
import TimelineChart from './components/TimelineChart';
import ReportPanel from './components/ReportPanel';
import './index.css';
export default function App() {
const cluster = useCluster();
return (
{cluster.error && (
⚠ {cluster.error}
)}
{cluster.logs.trim() && (
)}
{cluster.loading && (
Running pipeline — parsing, embedding, clustering...
)}
{cluster.result && (
<>
{cluster.result.clusters.map(c => (
))}
{cluster.result.anomalies.length > 0 && (
)}
>
)}
);
}