import React from "react";
import { connect } from "react-redux";
import { withRouter, Route } from "react-router";
import { Link } from "react-router-dom";
import { Entry } from "../../pages/entry";

class BlogCard extends React.Component {
  render() {
    return (
      <div>
        <h2>{this.props.title}</h2>
        <p>{this.props.content}</p>
        <Link to={`/blog/${this.props.slug}`}>Read more..</Link>
      </div>
    );
  }
}

export default withRouter(BlogCard);
