We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5463a1 commit 6b5e480Copy full SHA for 6b5e480
spicecloud/pages/index.tsx
@@ -11,6 +11,16 @@ interface MetricData {
11
readable_timestamp: string;
12
}
13
14
+const getFileIconSrc = (ext: string): string => {
15
+ switch (ext) {
16
+ case '.py': return '/python-logo.png';
17
+ case '.js': return '/javascript-logo.png';
18
+ case '.rb': return '/ruby-logo.png';
19
+ case '.go': return '/go-logo.png';
20
+ default: return '/file-icon.png';
21
+ }
22
+};
23
+
24
export default function Home() {
25
const [data, setData] = useState<MetricData[]>([]);
26
const [selectedFile, setSelectedFile] = useState<MetricData | null>(null);
0 commit comments