Files
snort/src/Pages/EventPage.tsx
2023-02-09 12:29:39 +00:00

13 lines
359 B
TypeScript

import { useParams } from "react-router-dom";
import Thread from "Element/Thread";
import useThreadFeed from "Feed/ThreadFeed";
import { parseId } from "Util";
export default function EventPage() {
const params = useParams();
const id = parseId(params.id ?? "");
const thread = useThreadFeed(id);
return <Thread notes={thread.notes} this={id} />;
}