diff --git a/frontend/app/generate/page.tsx b/frontend/app/generate/page.tsx
index 55d28c5..d659fdc 100644
--- a/frontend/app/generate/page.tsx
+++ b/frontend/app/generate/page.tsx
@@ -2,8 +2,10 @@
import { useState } from 'react'
import Link from 'next/link'
+import { ProtectedRoute } from '@/components/ProtectedRoute'
+import { Navigation } from '@/components/Navigation'
-export default function GeneratePage() {
+function GenerateContent() {
const [mode, setMode] = useState<'manual' | 'screenshot'>('manual')
const [textInput, setTextInput] = useState('')
const [extractionType, setExtractionType] = useState<'vocabulary' | 'smart'>('vocabulary')
@@ -109,21 +111,7 @@ export default function GeneratePage() {
return (
{/* Navigation */}
-
+
{!showPreview ? (
@@ -561,4 +549,12 @@ export default function GeneratePage() {
)}
)
+}
+
+export default function GeneratePage() {
+ return (
+
+
+
+ )
}
\ No newline at end of file
diff --git a/frontend/components/Navigation.tsx b/frontend/components/Navigation.tsx
index 70a5247..e6b8a5f 100644
--- a/frontend/components/Navigation.tsx
+++ b/frontend/components/Navigation.tsx
@@ -18,7 +18,8 @@ export function Navigation({ showExitLearning = false, onExitLearning }: Navigat
const navItems = [
{ href: '/dashboard', label: '儀表板' },
{ href: '/flashcards', label: '詞卡' },
- { href: '/learn', label: '學習' }
+ { href: '/learn', label: '學習' },
+ { href: '/generate', label: 'AI 生成' }
]
return (