2022-12-18 14:51:32 +00:00
|
|
|
import { useSelector } from "react-redux";
|
|
|
|
import { useParams } from "react-router-dom";
|
2022-12-18 22:23:52 +00:00
|
|
|
import useProfileFeed from "./feed/ProfileFeed";
|
2022-12-18 14:51:32 +00:00
|
|
|
|
|
|
|
export default function ProfilePage() {
|
|
|
|
const params = useParams();
|
|
|
|
const id = params.id;
|
2022-12-18 22:23:52 +00:00
|
|
|
useProfileFeed(id);
|
|
|
|
|
2022-12-18 14:51:32 +00:00
|
|
|
const user = useSelector(s => s.users.users[id]);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="profile">
|
2022-12-18 22:23:52 +00:00
|
|
|
<img src={user?.picture} />
|
2022-12-18 14:51:32 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|