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() {
|
2023-02-07 20:04:50 +00:00
|
|
|
const params = useParams();
|
2023-02-07 19:47:57 +00:00
|
|
|
const id = parseId(params.id ?? "");
|
2023-02-07 20:04:50 +00:00
|
|
|
const thread = useThreadFeed(id);
|
2023-01-02 11:15:13 +00:00
|
|
|
|
2023-03-04 21:41:29 +00:00
|
|
|
return <Thread key={id} notes={thread.notes} />;
|
2023-02-07 20:04:50 +00:00
|
|
|
}
|