MCPcopy Create free account
hub / github.com/BingyanStudio/github-analyzer / ReportContent

Function ReportContent

web/src/components/report/ReportContent.tsx:12–57  ·  view source on GitHub ↗
({
  report,
  isStreaming,
  statusMessage,
  errorMessage,
}: ReportContentProps)

Source from the content-addressed store, hash-verified

10}
11
12const ReportContent = ({
13 report,
14 isStreaming,
15 statusMessage,
16 errorMessage,
17}: ReportContentProps) => {
18 return (
19 <CardContent className="p-4">
20 {report ? (
21 <div className="font-mono text-sm bg-card/50 rounded-lg p-6 border shadow-inner overflow-x-auto report-container">
22 <ReportFormatter report={report} />
23 </div>
24 ) : (
25 <div className="text-center text-muted-foreground">
26 {errorMessage || "服务器繁忙,请稍后再试。"}
27 </div>
28 )}
29
30 <p className="text-sm text-muted-foreground text-center w-full mt-4">
31 Powered by
32 <a
33 href="https://www.bingyan.net/"
34 className="text-[#F5AB3D] underline"
35 target="_blank"
36 >
37 <img
38 src="/by-logo.png"
39 alt="Logo"
40 className="inline-block h-6 w-6 ms-1"
41 />
42 BingyanStudio
43 </a>
44 </p>
45
46 {/* Status and loading indicator */}
47 {(isStreaming || statusMessage) && (
48 <div className="flex items-center justify-center mt-4 p-2 bg-primary/5 rounded-md">
49 <Loader2 className="h-4 w-4 mr-2 animate-spin text-primary" />
50 <span className="text-sm text-muted-foreground">
51 {statusMessage || "正在接收数据..."}
52 </span>
53 </div>
54 )}
55 </CardContent>
56 );
57};
58
59export default ReportContent;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected