From f53768612b1e2268697b5444e502032ef9f3fb3c Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
Date: Tue, 23 May 2023 23:45:12 -0400
Subject: copying from old repo

---
 extension/react-app/src/components/VSCodeFileLink.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 extension/react-app/src/components/VSCodeFileLink.tsx

(limited to 'extension/react-app/src/components/VSCodeFileLink.tsx')

diff --git a/extension/react-app/src/components/VSCodeFileLink.tsx b/extension/react-app/src/components/VSCodeFileLink.tsx
new file mode 100644
index 00000000..6219654d
--- /dev/null
+++ b/extension/react-app/src/components/VSCodeFileLink.tsx
@@ -0,0 +1,17 @@
+import React from "react";
+import { postVscMessage } from "../vscode";
+
+function VSCodeFileLink(props: { path: string; text?: string }) {
+  return (
+    <a
+      href={`file://${props.path}`}
+      onClick={() => {
+        postVscMessage("openFile", { path: props.path });
+      }}
+    >
+      {props.text || props.path}
+    </a>
+  );
+}
+
+export default VSCodeFileLink;
-- 
cgit v1.2.3-70-g09d2

