/** * Component: Author Card * Documentation: documentation/frontend/components.md * * Premium circular portrait design - distinguishes authors from audiobook covers. * Hover effects and typography match the AudiobookCard aesthetic. * Clicking navigates to the author's detail page. */ 'use client'; import React from 'react'; import Image from 'next/image'; import Link from 'next/link'; import { Author } from '@/lib/hooks/useAuthors'; interface AuthorCardProps { author: Author; } export function AuthorCard({ author }: AuthorCardProps) { return ( {/* Circular Portrait Container */}
{author.image ? ( ) : (
)} {/* Subtle hover overlay */}
{/* Author Info */}

{author.name}

{/* Genre Pills */} {author.genres.length > 0 && (
{author.genres.map(genre => ( {genre} ))}
)}
); }