|
|
@@ -2,18 +2,18 @@ import { useState } from 'react'
|
|
|
import { Fragment } from 'react/jsx-runtime'
|
|
|
import { format } from 'date-fns'
|
|
|
import {
|
|
|
- IconArrowLeft,
|
|
|
- IconDotsVertical,
|
|
|
- IconEdit,
|
|
|
- IconMessages,
|
|
|
- IconPaperclip,
|
|
|
- IconPhone,
|
|
|
- IconPhotoPlus,
|
|
|
- IconPlus,
|
|
|
- IconSearch,
|
|
|
- IconSend,
|
|
|
- IconVideo,
|
|
|
-} from '@tabler/icons-react'
|
|
|
+ ArrowLeft,
|
|
|
+ MoreVertical,
|
|
|
+ Edit,
|
|
|
+ Paperclip,
|
|
|
+ Phone,
|
|
|
+ ImagePlus,
|
|
|
+ Plus,
|
|
|
+ Search as SearchIcon,
|
|
|
+ Send,
|
|
|
+ Video,
|
|
|
+ MessagesSquare,
|
|
|
+} from 'lucide-react'
|
|
|
import { cn } from '@/lib/utils'
|
|
|
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
|
|
|
import { Button } from '@/components/ui/button'
|
|
|
@@ -81,7 +81,7 @@ export default function Chats() {
|
|
|
<div className='flex items-center justify-between py-2'>
|
|
|
<div className='flex gap-2'>
|
|
|
<h1 className='text-2xl font-bold'>Inbox</h1>
|
|
|
- <IconMessages size={20} />
|
|
|
+ <MessagesSquare size={20} />
|
|
|
</div>
|
|
|
|
|
|
<Button
|
|
|
@@ -90,12 +90,12 @@ export default function Chats() {
|
|
|
onClick={() => setCreateConversationDialog(true)}
|
|
|
className='rounded-lg'
|
|
|
>
|
|
|
- <IconEdit size={24} className='stroke-muted-foreground' />
|
|
|
+ <Edit size={24} className='stroke-muted-foreground' />
|
|
|
</Button>
|
|
|
</div>
|
|
|
|
|
|
<label className='border-input focus-within:ring-ring flex h-12 w-full items-center space-x-0 rounded-md border ps-2 focus-within:ring-1 focus-within:outline-hidden'>
|
|
|
- <IconSearch size={15} className='me-2 stroke-slate-500' />
|
|
|
+ <SearchIcon size={15} className='me-2 stroke-slate-500' />
|
|
|
<span className='sr-only'>Search</span>
|
|
|
<input
|
|
|
type='text'
|
|
|
@@ -168,7 +168,7 @@ export default function Chats() {
|
|
|
className='-ms-2 h-full sm:hidden'
|
|
|
onClick={() => setMobileSelectedUser(null)}
|
|
|
>
|
|
|
- <IconArrowLeft className='rtl:rotate-180' />
|
|
|
+ <ArrowLeft className='rtl:rotate-180' />
|
|
|
</Button>
|
|
|
<div className='flex items-center gap-2 lg:gap-4'>
|
|
|
<Avatar className='size-9 lg:size-11'>
|
|
|
@@ -196,21 +196,21 @@ export default function Chats() {
|
|
|
variant='ghost'
|
|
|
className='hidden size-8 rounded-full sm:inline-flex lg:size-10'
|
|
|
>
|
|
|
- <IconVideo size={22} className='stroke-muted-foreground' />
|
|
|
+ <Video size={22} className='stroke-muted-foreground' />
|
|
|
</Button>
|
|
|
<Button
|
|
|
size='icon'
|
|
|
variant='ghost'
|
|
|
className='hidden size-8 rounded-full sm:inline-flex lg:size-10'
|
|
|
>
|
|
|
- <IconPhone size={22} className='stroke-muted-foreground' />
|
|
|
+ <Phone size={22} className='stroke-muted-foreground' />
|
|
|
</Button>
|
|
|
<Button
|
|
|
size='icon'
|
|
|
variant='ghost'
|
|
|
className='h-10 rounded-md sm:h-8 sm:w-4 lg:h-10 lg:w-6'
|
|
|
>
|
|
|
- <IconDotsVertical className='stroke-muted-foreground sm:size-5' />
|
|
|
+ <MoreVertical className='stroke-muted-foreground sm:size-5' />
|
|
|
</Button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -259,10 +259,7 @@ export default function Chats() {
|
|
|
variant='ghost'
|
|
|
className='h-8 rounded-md'
|
|
|
>
|
|
|
- <IconPlus
|
|
|
- size={20}
|
|
|
- className='stroke-muted-foreground'
|
|
|
- />
|
|
|
+ <Plus size={20} className='stroke-muted-foreground' />
|
|
|
</Button>
|
|
|
<Button
|
|
|
size='icon'
|
|
|
@@ -270,7 +267,7 @@ export default function Chats() {
|
|
|
variant='ghost'
|
|
|
className='hidden h-8 rounded-md lg:inline-flex'
|
|
|
>
|
|
|
- <IconPhotoPlus
|
|
|
+ <ImagePlus
|
|
|
size={20}
|
|
|
className='stroke-muted-foreground'
|
|
|
/>
|
|
|
@@ -281,7 +278,7 @@ export default function Chats() {
|
|
|
variant='ghost'
|
|
|
className='hidden h-8 rounded-md lg:inline-flex'
|
|
|
>
|
|
|
- <IconPaperclip
|
|
|
+ <Paperclip
|
|
|
size={20}
|
|
|
className='stroke-muted-foreground'
|
|
|
/>
|
|
|
@@ -300,11 +297,11 @@ export default function Chats() {
|
|
|
size='icon'
|
|
|
className='hidden sm:inline-flex'
|
|
|
>
|
|
|
- <IconSend size={20} />
|
|
|
+ <Send size={20} />
|
|
|
</Button>
|
|
|
</div>
|
|
|
<Button className='h-full sm:hidden'>
|
|
|
- <IconSend size={18} /> Send
|
|
|
+ <Send size={18} /> Send
|
|
|
</Button>
|
|
|
</form>
|
|
|
</div>
|
|
|
@@ -317,7 +314,7 @@ export default function Chats() {
|
|
|
>
|
|
|
<div className='flex flex-col items-center space-y-6'>
|
|
|
<div className='border-border flex size-16 items-center justify-center rounded-full border-2'>
|
|
|
- <IconMessages className='size-8' />
|
|
|
+ <MessagesSquare className='size-8' />
|
|
|
</div>
|
|
|
<div className='space-y-2 text-center'>
|
|
|
<h1 className='text-xl font-semibold'>Your messages</h1>
|