about summary refs log tree commit diff
path: root/src/components
diff options
context:
space:
mode:
authorManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-11 11:22:06 +0200
committerManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-11 11:22:06 +0200
commit7a8b457f96e18b945937966ee6ba7193d20165d1 (patch)
tree7ae2c5b185fb3bb6b4d45b0c284195acb30d8df0 /src/components
parentComponents: Sidebar: Show link on hover (diff)
downloadfs-tracer-frontend-7a8b457f96e18b945937966ee6ba7193d20165d1.tar.gz
fs-tracer-frontend-7a8b457f96e18b945937966ee6ba7193d20165d1.tar.bz2
fs-tracer-frontend-7a8b457f96e18b945937966ee6ba7193d20165d1.zip
Components: FileCompnent: Add filecomponent
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Other/FSTracerFile.tsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/Other/FSTracerFile.tsx b/src/components/Other/FSTracerFile.tsx
new file mode 100644
index 0000000..61c8e35
--- /dev/null
+++ b/src/components/Other/FSTracerFile.tsx
@@ -0,0 +1,13 @@
+import { FSTracerFile } from "../../lib/types"
+
+interface FileComponentProps {
+	file: FSTracerFile
+}
+
+export default function FileComponent(props: FileComponentProps) {
+	return (
+		<a href={`/file/${encodeURIComponent(props.file.absolute_path)}`}>
+			<p className="underline">file: {props.file.absolute_path}</p>
+		</a>
+	)
+}