about summary refs log tree commit diff
path: root/src/components/Other/FSTracerFile.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Other/FSTracerFile.tsx')
-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>
+	)
+}