import Link from 'next/link'; import { Pin, ArrowRight, MessageCircle } from 'lucide-react'; import { formatDate } from '@/lib/markdown'; function NoteCard({ note }) { return (
{note.is_pinned && (
закреплено
)} {note.title && (

{note.title}

)}

{note.content}

{note.author} {formatDate(note.created_at)}
); } export default function NotesBlock({ notes, compact = false }) { if (!notes || notes.length === 0) return null; const items = compact ? notes.slice(0, 3) : notes; return (

Заметки редактора

{compact && notes.length > 3 && ( Все )}
{items.map(n => )}
); }