import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; import { useDifferenceDoc, commit, commitAll } from "@/hook/useDifference"; import { useLogin } from "@/state/user"; import { Fragment } from "react/jsx-runtime"; export function DifferencePage() { const { data, isLoading, error } = useDifferenceDoc(); const userInfo = useLogin(); if (!userInfo) { return

Not logged in

} if (error) { return
Error: {String(error)}
} return (
Difference Scanned Files List {isLoading &&
Loading...
} {data?.map((c) => { const x = c.value; return ( {x.map((y) => (

{y.path}

))}
) })}
) } export default DifferencePage;