import { lazy, Suspense } from 'react'; import { Routes, Route } from 'react-router-dom'; import Header from '@/components/layout/Header'; import Footer from '@/components/layout/Footer'; import { useDirection } from '@/hooks/useDirection'; // Pages const HomePage = lazy(() => import('@/pages/HomePage')); const AboutPage = lazy(() => import('@/pages/AboutPage')); const PrivacyPage = lazy(() => import('@/pages/PrivacyPage')); const NotFoundPage = lazy(() => import('@/pages/NotFoundPage')); const TermsPage = lazy(() => import('@/pages/TermsPage')); // Tool Pages const PdfToWord = lazy(() => import('@/components/tools/PdfToWord')); const WordToPdf = lazy(() => import('@/components/tools/WordToPdf')); const PdfCompressor = lazy(() => import('@/components/tools/PdfCompressor')); const ImageConverter = lazy(() => import('@/components/tools/ImageConverter')); const VideoToGif = lazy(() => import('@/components/tools/VideoToGif')); const WordCounter = lazy(() => import('@/components/tools/WordCounter')); const TextCleaner = lazy(() => import('@/components/tools/TextCleaner')); const MergePdf = lazy(() => import('@/components/tools/MergePdf')); const SplitPdf = lazy(() => import('@/components/tools/SplitPdf')); const RotatePdf = lazy(() => import('@/components/tools/RotatePdf')); const PdfToImages = lazy(() => import('@/components/tools/PdfToImages')); const ImagesToPdf = lazy(() => import('@/components/tools/ImagesToPdf')); const WatermarkPdf = lazy(() => import('@/components/tools/WatermarkPdf')); const ProtectPdf = lazy(() => import('@/components/tools/ProtectPdf')); const UnlockPdf = lazy(() => import('@/components/tools/UnlockPdf')); const AddPageNumbers = lazy(() => import('@/components/tools/AddPageNumbers')); function LoadingFallback() { return (