From 538d6830a0022b49b99695095d85e567b0c86e71 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 30 Jul 2023 23:47:53 +0800
Subject: ...

---
 FrontEnd/src/pages/timeline/index.tsx | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 FrontEnd/src/pages/timeline/index.tsx

(limited to 'FrontEnd/src/pages/timeline/index.tsx')

diff --git a/FrontEnd/src/pages/timeline/index.tsx b/FrontEnd/src/pages/timeline/index.tsx
new file mode 100644
index 00000000..1dffdcc1
--- /dev/null
+++ b/FrontEnd/src/pages/timeline/index.tsx
@@ -0,0 +1,23 @@
+import * as React from "react";
+import { useParams } from "react-router-dom";
+
+import { UiLogicError } from "@/common";
+
+import Timeline from "./Timeline";
+
+const TimelinePage: React.FC = () => {
+  const { owner, timeline: timelineNameParam } = useParams();
+
+  if (owner == null || owner == "")
+    throw new UiLogicError("Route param owner is not set.");
+
+  const timeline = timelineNameParam || "self";
+
+  return (
+    <div className="container">
+      <Timeline timelineOwner={owner} timelineName={timeline} />
+    </div>
+  );
+};
+
+export default TimelinePage;
-- 
cgit v1.2.3

