import React from 'react'; import { Article } from '../types'; import { FileText } from 'lucide-react'; interface ReaderViewProps { article?: Article | null; } export const ReaderView: React.FC = ({ article }) => { if (!article) { return (

Select an article to read along

The text will appear here while you listen.

); } // Split text by newlines to create paragraphs const paragraphs = article.text ? article.text.split('\n').filter(p => p.trim().length > 0) : []; return (

{article.title}

{new URL(article.url).hostname}
{paragraphs.length > 0 ? ( paragraphs.map((paragraph, idx) => (

{paragraph}

)) ) : (

Extracting article content...

)}
); };