import type { Note } from "@/types"; import { Card } from "@/components/ui/Card"; interface NoteCardProps { note: Note; onClick?: () => void; } export function NoteCard({ note, onClick }: NoteCardProps) { return (

{note.title || "无标题"}

{note.content?.slice(0, 120) || "空笔记"}

{note.isMarkdown && MD} {new Date(note.updatedAt).toLocaleDateString("zh-CN")}
); }