import React from "react"; import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; import { Minimize2, Type, BookOpen } from "lucide-react"; import { Document } from "../../types"; interface ReadingModeViewProps { activeDoc: Document; charCount: number; wordCount: number; readingTheme: "dark" | "sepia" | "light"; setReadingTheme: (theme: "dark" | "sepia" | "light") => void; readingFontFamily: "sans" | "serif" | "mono"; setReadingFontFamily: (ff: "sans" | "serif" | "mono") => void; readingFontSize: "sm" | "base" | "lg" | "xl"; setReadingFontSize: (sz: "sm" | "base" | "lg" | "xl") => void; readingLineHeight: "normal" | "relaxed" | "loose"; setReadingLineHeight: (lh: "normal" | "relaxed" | "loose") => void; setIsReadingMode: (isReading: boolean) => void; } export default function ReadingModeView({ activeDoc, charCount, wordCount, readingTheme, setReadingTheme, readingFontFamily, setReadingFontFamily, readingFontSize, setReadingFontSize, readingLineHeight, setReadingLineHeight, setIsReadingMode }: ReadingModeViewProps) { return (
Reading: {activeDoc.title}
{(["sm", "base", "lg", "xl"] as const).map((sz) => ( ))}
{(["sans", "serif", "mono"] as const).map((ff) => ( ))}

{activeDoc.title.replace(/\.[^/.]+$/, "")}

Last saved {new Date(activeDoc.lastSaved).toLocaleString()} • {charCount} characters • {wordCount} words
{activeDoc.content}
); }