blob: 131c38c7cae4711efafb099786b7bd6249479ca4 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 | import React from "react";
import { useParams } from "react-router-dom";
import { UiLogicError } from "@/common";
import { useReverseScrollPositionRemember } from "@/utilities/hooks";
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";
  useReverseScrollPositionRemember();
  return (
    <div className="container">
      <Timeline timelineOwner={owner} timelineName={timeline} />
    </div>
  );
};
export default TimelinePage;
 |