Skip to content
Snippets Groups Projects
Commit 24ad2f3c authored by Matt Kirby's avatar Matt Kirby
Browse files

Added useravatar

parent 3efc943d
No related branches found
No related tags found
1 merge request!18Fe search and friends (sorry in advance)
import { UserCircleIcon, UserPlusIcon } from "@heroicons/react/24/outline";
import { FC, PropsWithChildren } from "react";
type UserAvatarProps = {
firstName?: string,
lastName?: string,
profile?:string,
username: string
}
const UserAvatar:FC<PropsWithChildren<UserAvatarProps>> = ({
username,
firstName,
lastName,
}) => {
return (
<div className='flex items-center p-1'>
<div className="">
<UserCircleIcon className='h-12 w-12 rounded-full text-gray-300 flex items-center justify-center' />
</div>
<div className='text-sm ml-1 text-gray-900 whitespace-nowrap'>
{firstName && <div>{`${firstName} ${lastName || null}`}</div>}
<p className='text-sm text-gray-500 font-normal'>@{username}</p>
</div>
</div>
)
}
export default UserAvatar;
\ 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