text: import React, { Component } from 'react';
  import api from '../services/api'
  
  import './Tweet.css';
  import Like from '../like.svg'
  
  export default class Tweet extends Component {
  
    handleLike = async () => {
      const { _id } = this.props.tweet
  
      await api.post(`likes/${_id}`)
    }
  
    render() {
      const { tweet } = this.props
      return (
        <li className="tweet">
          <strong>{tweet.author}</strong>
          <p>{tweet.content}</p>
          <button type="button" onClick={this.handleLike}>
            <img src={Like} alt="Logo Like"></img>
            {tweet.likes}
          </button>
        </li>
      )
    }
  }
  