update and fix messanger
This commit is contained in:
13
apps/frontend/components/chat/chat-date-separator.tsx
Normal file
13
apps/frontend/components/chat/chat-date-separator.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
'use client';
|
||||
|
||||
import { formatChatDateLabel } from '@/lib/chat-date-utils';
|
||||
|
||||
export function ChatDateSeparator({ date }: { date: string }) {
|
||||
return (
|
||||
<div className="flex items-center gap-3 py-2">
|
||||
<div className="h-px flex-1 bg-black/10" />
|
||||
<span className="shrink-0 text-xs font-medium text-[#667085]">{formatChatDateLabel(date)}</span>
|
||||
<div className="h-px flex-1 bg-black/10" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user