snort/packages/app/src/Pages/EventPage.tsx

13 lines
358 B
TypeScript
Raw Normal View History

2022-12-18 14:51:47 +00:00
import { useParams } from "react-router-dom";
2023-01-20 11:11:50 +00:00
import Thread from "Element/Thread";
import useThreadFeed from "Feed/ThreadFeed";
import { parseId } from "Util";
2022-12-18 14:51:47 +00:00
export default function EventPage() {
const params = useParams();
2023-02-07 19:47:57 +00:00
const id = parseId(params.id ?? "");
const thread = useThreadFeed(id);
2023-01-02 11:15:13 +00:00
return <Thread key={id} notes={thread.notes} />;
}