import { format } from 'date-fns' import Link from 'next/link' interface GuideHeaderProps { title: string description: string date: string authors: Array<{ name: string url?: string }> category?: string } export function GuideHeader({ title, description, date, authors, category }: GuideHeaderProps) { return (

{title}

{description &&

{description}

}
•
{authors.map((author, index) => ( {author.url ? ( {author.name} ) : ( author.name )} {index < authors.length - 1 && ', '} ))}
) }