11'use client'
2- import { Bookmark , Heart , MessageCircle , MoreHorizontal , Pencil , ShareIcon , Trash2 } from "lucide-react" ;
2+ import { Bookmark , MoreHorizontal , Pencil , ShareIcon , Trash2 } from "lucide-react" ;
33import { Button } from "../ui/button" ;
44import { cn } from "@/lib/utils" ;
55import ShareList from "../share-list" ;
@@ -13,6 +13,7 @@ import { Separator } from "../ui/separator";
1313import { Post } from "@prisma/client" ;
1414import { revalidatePath } from "next/cache" ;
1515import { validate } from "@/lib/revalidate" ;
16+ import { Icons } from "../icon" ;
1617
1718export default function PostTabs ( { post : initialPost , className, session, author, onClicked } : { post : any , className ?: string , session : any , author : any , onClicked : ( ) => void } ) {
1819 const [ post , setPost ] = useState < any > ( initialPost ) ;
@@ -51,13 +52,13 @@ export default function PostTabs({ post: initialPost, className, session, author
5152 {
5253 session ? (
5354 < Button className = "h-10 w-10 mr-0.5 rounded-full hover:bg-primary hover:text-primary-foreground" size = { "icon" } variant = { "ghost" } onClick = { ( ) => like ( post . id ) } disabled = { session . id == post . authorId } >
54- < Heart className = { `w-5 h-5 ${ isLiked && 'fill-current' } ` } strokeWidth = { 2 } />
55+ < Icons . like className = { `w-6 h-6 ${ isLiked && 'fill-current' } ` } />
5556 < span className = "sr-only" > Like</ span >
5657 </ Button >
5758 ) : (
5859 < LoginDialog >
5960 < Button className = "h-10 w-10 mr-0.5 rounded-full hover:bg-primary hover:text-primary-foreground" size = { "icon" } variant = { "ghost" } >
60- < Heart className = { `w-5 h-5` } strokeWidth = { 2 } />
61+ < Icons . like className = "w-6 h-6" />
6162 < span className = "sr-only" > Like</ span >
6263 </ Button >
6364 </ LoginDialog >
@@ -68,7 +69,7 @@ export default function PostTabs({ post: initialPost, className, session, author
6869 < Separator orientation = "vertical" />
6970 < div className = "flex items-center" >
7071 < Button className = "h-10 w-10 mr-0.5 rounded-full hover:bg-primary hover:text-primary-foreground" size = { "icon" } variant = { "ghost" } onClick = { onClicked } >
71- < MessageCircle className = "w-5 h-5" strokeWidth = { 2 } />
72+ < Icons . commentBubble className = "w-6 h-6" />
7273 < span className = "sr-only" > Comment</ span >
7374 </ Button >
7475 < span className = "text-sm" > { post ?. _count . comments } </ span >
@@ -81,13 +82,13 @@ export default function PostTabs({ post: initialPost, className, session, author
8182 {
8283 session ? (
8384 < Button className = "h-10 w-10 mr-0.5 rounded-full hover:bg-primary hover:text-primary-foreground" size = { "icon" } variant = { "ghost" } onClick = { ( ) => save ( post . id ) } >
84- < Bookmark className = { `w-5 h-5 ${ isSaved && 'fill-current' } ` } strokeWidth = { 2 } />
85+ < Icons . bookmark className = { `w-6 h-6 ${ isSaved && 'fill-current' } ` } />
8586 < span className = "sr-only" > Save</ span >
8687 </ Button >
8788 ) : (
8889 < LoginDialog >
8990 < Button className = "h-10 w-10 mr-0.5 rounded-full hover:bg-primary hover:text-primary-foreground" size = { "icon" } variant = { "ghost" } >
90- < Bookmark className = { `w-5 h-5` } strokeWidth = { 2 } />
91+ < Icons . bookmark className = "w-6 h-6" />
9192 < span className = "sr-only" > Save</ span >
9293 </ Button >
9394 </ LoginDialog >
@@ -96,7 +97,7 @@ export default function PostTabs({ post: initialPost, className, session, author
9697 < Separator orientation = "vertical" />
9798 < ShareList url = { `${ process . env . DOMAIN } /@${ author ?. username } /${ post . url } ` } text = { post . title } >
9899 < Button className = "h-10 w-10 mr-0.5 rounded-full hover:bg-primary hover:text-primary-foreground" size = { "icon" } variant = { "ghost" } >
99- < ShareIcon className = "w-5 h-5" strokeWidth = { 2 } />
100+ < Icons . share className = "w-6 h-6" />
100101 < span className = "sr-only" > Share</ span >
101102 </ Button >
102103 </ ShareList >
@@ -107,7 +108,7 @@ export default function PostTabs({ post: initialPost, className, session, author
107108 < DropdownMenu >
108109 < DropdownMenuTrigger asChild >
109110 < Button className = "h-10 w-10 mr-0.5 rounded-full hover:bg-primary hover:text-primary-foreground" size = { "icon" } variant = { "ghost" } >
110- < MoreHorizontal className = "w-5 h-5" strokeWidth = { 2 } />
111+ < Icons . moreHorizontal className = "w-6 h-6" />
111112 </ Button >
112113 </ DropdownMenuTrigger >
113114 < DropdownMenuContent align = "end" >
0 commit comments