Skip to content
Snippets Groups Projects
Commit b5c5e4b9 authored by Serdar D's avatar Serdar D
Browse files

user-item

parent 9515782f
No related branches found
No related tags found
2 merge requests!15Following,!14Following
Pipeline #35490 failed
import { User } from "@/components/ui/user";
import Image from "next/image";
import Link from "next/link";
// this is a single user helper-component, only for design purposes
export default function User({ id, userName, image }: { id: number, userName: string, image: { url: string } }) {
return (
<User>
<Link href={`/user/${id}`}>
<div className="">
<Image
src={image.url}
alt={userName}
width={264}
height={374}
priority={true}
style={{ width: '100%', height: '100%' }} />
</div>
</Link>
<p className="truncate">{userName}</p>
</User>
)
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment