snort/src/Pages/EventPage.tsx

13 lines
354 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();
const id = parseId(params.id!);
const thread = useThreadFeed(id);
2023-01-02 11:15:13 +00:00
return <Thread notes={thread.notes} this={id} />;
}