angrybeanie-front-end/components/publishedinfo.js
James Purser 3b40fdfe98 Contains the following:
- Updates to reference the new Richtext field from Strapi
- Update to include feature image in RSS
- General cleanups (removing a lot of console.log)
- I think there's a nextjs update in there as well
2023-08-02 21:45:36 +10:00

14 lines
No EOL
409 B
JavaScript

const PublishedInfo = (publishData) => {
var publishedDate = new Date(publishData.publishData.publishedAt)
var updatedDate = new Date(publishData.publishData.updatedAt)
return (
<div className="publishInfo">
First Published: {publishedDate.toDateString()}<br />
Last Updated: {updatedDate.toDateString()}<br />
</div>
)
}
export default PublishedInfo