Files
Momento/memento-note/app/(main)/trash/page.tsx
Sepehr Ramezani e4d4e23dc7 chore: clean up repo for public release
- Remove BMAD framework, IDE configs, dev screenshots, test files,
  internal docs, and backup files
- Rename keep-notes/ to memento-note/
- Update all references from keep-notes to memento-note
- Add Apache 2.0 license with Commons Clause (non-commercial restriction)
- Add clean .gitignore and .env.docker.example
2026-04-20 22:48:06 +02:00

22 lines
610 B
TypeScript

import { getTrashedNotes } from '@/app/actions/notes'
import { MasonryGrid } from '@/components/masonry-grid'
import { TrashHeader } from '@/components/trash-header'
import { TrashEmptyState } from './trash-empty-state'
export const dynamic = 'force-dynamic'
export default async function TrashPage() {
const notes = await getTrashedNotes()
return (
<main className="container mx-auto px-4 py-8 max-w-7xl">
<TrashHeader noteCount={notes.length} />
{notes.length > 0 ? (
<MasonryGrid notes={notes} isTrashView />
) : (
<TrashEmptyState />
)}
</main>
)
}