From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001
From: Saumit <justsaumit@protonmail.com>
Date: Sat, 27 Sep 2025 02:14:26 +0530
Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f

---
 src/frontend/components/Footer/Footer.tsx | 37 +++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 src/frontend/components/Footer/Footer.tsx

(limited to 'src/frontend/components/Footer/Footer.tsx')

diff --git a/src/frontend/components/Footer/Footer.tsx b/src/frontend/components/Footer/Footer.tsx
new file mode 100644
index 0000000..8831271
--- /dev/null
+++ b/src/frontend/components/Footer/Footer.tsx
@@ -0,0 +1,37 @@
+// Copyright The OpenTelemetry Authors
+// SPDX-License-Identifier: Apache-2.0
+
+import { useEffect, useState } from 'react';
+import * as S from './Footer.styled';
+import SessionGateway from '../../gateways/Session.gateway';
+import { CypressFields } from '../../utils/enums/CypressFields';
+import PlatformFlag from '../PlatformFlag';
+
+const currentYear = new Date().getFullYear();
+
+const { userId } = SessionGateway.getSession();
+
+const Footer = () => {
+  const [sessionId, setSessionId] = useState('');
+
+  useEffect(() => {
+    setSessionId(userId);
+  }, []);
+
+  return (
+    <S.Footer>
+      <div>
+        <p>This website is hosted for demo purpose only. It is not an actual shop.</p>
+        <p>
+          <span data-cy={CypressFields.SessionId}>session-id: {sessionId}</span>
+        </p>
+      </div>
+      <p>
+        @ {currentYear} OpenTelemetry (<a href="https://github.com/open-telemetry/opentelemetry-demo">Source Code</a>)
+      </p>
+      <PlatformFlag />
+    </S.Footer>
+  );
+};
+
+export default Footer;
-- 
cgit v1.2.3

