import React from 'react' import Link from 'next/link' import { ChevronRight } from 'react-feather' interface Props { title: string date: Date image?: string link: string } const months = [ "le 13eme mois", 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre' ] export default class Element extends React.Component { constructor(props: Props) { super(props) } render() { return (
{this.props.image ? ( ) : (
)} Le {this.props.date.getDate()} {months[this.props.date.getMonth()]} {this.props.date.getFullYear()} {this.props.title}
) } }