From a85a54651070765d6254287369835d747be1c276 Mon Sep 17 00:00:00 2001
From: "Alex Pooley (@zuedev)" <zuedev@gmail.com>
Date: Sat, 25 Jul 2026 17:27:38 +0100
Subject: manager is now using react

---
 174bg/manager/src/components/Welcome.jsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 174bg/manager/src/components/Welcome.jsx

(limited to '174bg/manager/src/components/Welcome.jsx')

diff --git a/174bg/manager/src/components/Welcome.jsx b/174bg/manager/src/components/Welcome.jsx
new file mode 100644
index 0000000..da771cf
--- /dev/null
+++ b/174bg/manager/src/components/Welcome.jsx
@@ -0,0 +1,14 @@
+export default function Welcome({ record }) {
+  const name = record?.RSI_Handle || record?.name || "Pilot";
+  const avatarFile = record?.avatar;
+  const avatarUrl = avatarFile
+    ? `https://db.174bg.net/api/files/${record.collectionId}/${record.id}/${avatarFile}`
+    : null;
+
+  return (
+    <div id="welcome">
+      {avatarUrl && <img id="welcome-avatar" src={avatarUrl} alt={name} />}
+      <span id="welcome-text">Welcome back, {name}!</span>
+    </div>
+  );
+}
-- 
cgit v1.2.3

