Skip to content
Snippets Groups Projects
Commit e7f728bf authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

Merge branch 'following' of gitlab.bht-berlin.de:s86116/project_ss23 into following

parents 0e86fc96 b5c5e4b9
No related branches found
No related tags found
2 merge requests!15Following,!14Following
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