b5cc91e2ba
## Documentation / Examples - Adding TInaCMS example using the traditional CMS example Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
16 lines
356 B
JavaScript
16 lines
356 B
JavaScript
import Image from 'next/image'
|
|
|
|
export default function Avatar({ name, picture }) {
|
|
return (
|
|
<div className="flex items-center">
|
|
<Image
|
|
src={picture}
|
|
width={48}
|
|
height={48}
|
|
className="w-12 h-12 rounded-full mr-4"
|
|
alt={name}
|
|
/>
|
|
<div className="text-xl font-bold">{name}</div>
|
|
</div>
|
|
)
|
|
}
|