diff --git a/src/components/message.tsx b/src/components/message.tsx index 4fc0905..aabef5c 100644 --- a/src/components/message.tsx +++ b/src/components/message.tsx @@ -37,56 +37,62 @@ export default function Message({ data, onDelete }: IMessageProps) { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); + console.log({ data }); return ( -
- -
- {data.recipient.length > 0 && {data.recipient}} -
- - {dayjs(data.time).format("HH:mm D/M/YYYY")} - -
+ shadow="xs" + radius="md" + p="xs" + withBorder + className={`flex items-center relative gap-3 w-full transition-all duration-300 ${ + animation ? "animate-pulse !bg-blue-100" : "" + }`} + > +
+ +
+ {data.recipient.length > 0 && {data.recipient}} +
+ + {dayjs(data.time).format("HH:mm D/M/YYYY")} + +
- -