import { useEffect, useState } from 'react' import { LibraryHeader } from '../features/library/LibraryHeader' import { UploadArea } from '../features/library/UploadArea' import { DocumentGrid } from '../features/library/DocumentGrid' import { useLibrary } from '../features/library/useLibrary' export function HomePage() { const [currentTab, setCurrentTab] = useState<'library' | 'trash'>('library') const { fetchDocuments, fetchTrash } = useLibrary() // Initial fetch useEffect(() => { if (currentTab === 'library') { fetchDocuments() } else { fetchTrash() } }, [currentTab, fetchDocuments, fetchTrash]) return (
{currentTab === 'library' ? ( {/* Hero Section */}
{/* Decorative background shapes */}

What will you edit today?

Upload any PDF to instantly annotate, sign, and modify it. Drop your files right here to get started.

{/* Visual Graphic */}

Recent Documents

) : ( )}
) }