Remove all vestiges of the abandoned Trash system: trashed/trashedAt fields from types, frontmatter parsing, sidebar filtering, editor banners, inspector components, mock data, and all related tests. Delete is already permanent via useDeleteActions with a confirmation dialog. Notes with trashed:true in existing vault frontmatter are now treated as normal notes (the flag is ignored by the parser). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
682 B
TypeScript
16 lines
682 B
TypeScript
import { TrashSimple } from '@phosphor-icons/react'
|
|
|
|
export function EmptyMessage({ text }: { text: string }) {
|
|
return <div className="px-4 py-8 text-center text-[13px] text-muted-foreground">{text}</div>
|
|
}
|
|
|
|
export function DeletedNotesBanner({ count }: { count: number }) {
|
|
if (count === 0) return null
|
|
return (
|
|
<div className="flex items-center gap-2 border-b border-[var(--border)] opacity-60" style={{ padding: '14px 16px' }} data-testid="deleted-notes-banner">
|
|
<TrashSimple size={14} className="shrink-0 text-muted-foreground" />
|
|
<span className="text-[13px] text-muted-foreground">{count} {count === 1 ? 'note' : 'notes'} deleted</span>
|
|
</div>
|
|
)
|
|
}
|