diff --git a/src/components/message.jsx b/src/components/message.jsx index 27a22dd..9f1d55d 100644 --- a/src/components/message.jsx +++ b/src/components/message.jsx @@ -1,7 +1,10 @@ +import getFormattedTime from '@/utils/getFormattedDate' import Image from 'next/image' import Link from 'next/link' -export default function Message({ timeCreated, children }) { +export default function Message({ sentAt, children }) { + const time = getFormattedTime(sentAt) + return (
{children}
- {timeCreated} + {time}