import React from "react"; import { useParams } from "react-router"; import TimelinePageTemplate from "../timeline-common/TimelinePageTemplate"; import UserCard from "./UserCard"; const UserPage: React.FC = () => { const { username } = useParams<{ username: string }>(); const [reloadKey, setReloadKey] = React.useState(0); let dialogElement: React.ReactElement | undefined; return ( <> setReloadKey(reloadKey + 1)} CardComponent={UserCard} /> {dialogElement} ); }; export default UserPage;