'use client' import Link from 'next/link'; import { toRelativeDate } from '../lib/date'; export function NoteEntry({ note }: { note: { title: string, mtime: string, slug: string } }) { return ( {note.title} {note.mtime && toRelativeDate(note.mtime)} ); }