'use client' import { useNoteEditorContext } from './note-editor-context' import { TitleSuggestions } from '@/components/title-suggestions' import { Loader2, Sparkles } from 'lucide-react' import { useLanguage } from '@/lib/i18n' import { cn } from '@/lib/utils' import { toast } from 'sonner' export function NoteTitleBlock() { const { state, actions, readOnly, fullPage } = useNoteEditorContext() const { t } = useLanguage() if (fullPage) { return (