import React, { useEffect, useState } from 'react'; import axios from 'axios'; import { SecuritySummaryResponseType, } from '@/types/security-summary'; import { TextSearchIcon } from 'lucide-react'; import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "@/Components/ui/table" import {Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle} from "@/Components/ui/card"; export default function Home() { const [securitySummaryResponse, setSecuritySummaryResponse] = useState(null); useEffect(() => { axios.get('/api/v1/security/summary') .then(response => { setSecuritySummaryResponse(response.data); }) .catch(error => { console.error("Error fetching the report data", error); }); }, []); return (
Scan Reports Pick a scan to see the dashboard, you can also navigate trough dashboard using prev and next arrow at the end of each report overview Domain UUID Method Score {securitySummaryResponse?.results.map((data, index) => ( {data.domain_name} {data.idsummary} {data.creation_date} {data.risk_score} ))}
Upload Password Leak --todo
); };