import Link from 'next/link'; import { forwardRef } from 'react'; import { API_URL } from '../../utils/config'; import date from 'date-and-time'; import './CommentCard.css'; const CommentCard = forwardRef((props, ref) => { return (
{props.user.name} {props.user.name}  - {date.format(new Date(props.createdAt), 'DD/MM/YYYY à HH:mm', true)}

{props.message}

); }); export default CommentCard;