import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faHighlighter, faClock } from '@fortawesome/free-solid-svg-icons' interface ReaderHeaderProps { title?: string image?: string readingTimeText?: string | null hasHighlights: boolean highlightCount: number } const ReaderHeader: React.FC = ({ title, image, readingTimeText, hasHighlights, highlightCount }) => { return ( <> {image && (
{title
)} {title && (

{title}

{readingTimeText && (
{readingTimeText}
)} {hasHighlights && (
{highlightCount} highlight{highlightCount !== 1 ? 's' : ''}
)}
)} ) } export default ReaderHeader