import { store } from "../store/store"; import { connect } from "react-redux"; import { Link } from "react-router-dom"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import image from '../images/card.png'; import { faAlignCenter, faCompactDisc, faHeadphonesSimple} from "@fortawesome/free-solid-svg-icons"; import {UsersPlaylistsAll} from '../components/userPlaylists'; import { actionUsersPlaylists } from "../store/promiseReducer"; import { useEffect } from "react"; export const UserPage = ({user, playlists}) => { const getAnswer = () => { store.dispatch(actionUsersPlaylists(store.getState().auth?.user?.id)); }; useEffect(() => { getAnswer(); }, []); return(<>
{store.getState().auth?.user?.name}
Edit Profile