{items.map((item, index) => {
const postUrl = item.uri || `/blog/${item.databaseId}`;
const postDate = new Date(item.date);
const isLarge = shouldBeLarge(index);
return (
{item.featuredImage?.node?.sourceUrl ? (

) : (
)}
{item.categories?.nodes?.[0] && (
)}
{item.title}
{item.coauthors && item.coauthors.length > 0 && (
{item.coauthors.map((coauthor: any, i: number) => {
const name = coauthor?.node?.name || coauthor?.name;
const nickname = coauthor?.node?.nickname || coauthor?.nickname;
console.log(nickname);
return (
{i > 0 && ', '}
{nickname ? (
e.stopPropagation()}
>
{name}
) : (
{name}
)}
);
})}
)}
);
})}