import React from 'react' import Image from 'next/image' import type { Author } from 'types/payload-types' interface Props { author: Author } const AuthorComponent: React.FC = ({ author }) => { return ( <> {author && (
{typeof author.avatar === 'object' && ( {author.avatar.alt )}

{author.name}

{author.bio}

)} ) } export default AuthorComponent