rsnext/examples/cms-tina/components/avatar.js
James Perkins b5cc91e2ba
[examples] Add Tina CMS blog starter (#35045)
## Documentation / Examples

- Adding TInaCMS example using the traditional CMS example 


Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
2022-03-05 17:08:49 +00:00

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>
)
}