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

13 lines
358 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 key={id} notes={thread.notes} />;
}