- Add Bell/reminder item to EditorialNoteMenu (notes-editorial-view.tsx) - Add FolderOpen submenu for moving notes between notebooks - Import ReminderDialog, useNotebooks, DropdownMenuSub components - Fix settings/general/page.tsx to pass only required props to GeneralSettingsClient Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25 lines
620 B
TypeScript
25 lines
620 B
TypeScript
import { auth } from '@/auth'
|
|
import { redirect } from 'next/navigation'
|
|
import { getAISettings } from '@/app/actions/ai-settings'
|
|
import { GeneralSettingsClient } from './general-settings-client'
|
|
|
|
export default async function GeneralSettingsPage() {
|
|
const session = await auth()
|
|
if (!session?.user) {
|
|
redirect('/api/auth/signin')
|
|
}
|
|
|
|
const {
|
|
preferredLanguage,
|
|
emailNotifications,
|
|
desktopNotifications,
|
|
autoSave,
|
|
} = await getAISettings()
|
|
|
|
return (
|
|
<GeneralSettingsClient
|
|
initialSettings={{ preferredLanguage, emailNotifications, desktopNotifications, autoSave }}
|
|
/>
|
|
)
|
|
}
|