import React, { useContext } from "react" import Summary from "../base/Summary" import { faStar, faTrash, faUser } from "@fortawesome/free-solid-svg-icons" import Button from "../base/Button" import ContextUser from "../../contexts/ContextUser" import Localization from "../../Localization" export default function SummaryUser({ user, destroyUser, running, ...props }) { const { user: loggedUser } = useContext(ContextUser) const buttons = <> {loggedUser.email !== user.email ? : null} return ( ) }