import { FC } from "react"; import { NavLink, useLocation } from "react-router-dom"; import Avatar from "../../common/component/Avatar"; import { useAppSelector } from "../../app/store"; interface Props { uid: number; } const User: FC = ({ uid }) => { const { pathname } = useLocation(); const user = useAppSelector((store) => store.users.byId[uid]); if (!user) return null; return (
); }; export default User;