Substitui rotas separadas de inativos/arquivados por tabs inline em Cartões, Contas e Anotações, seguindo o padrão já usado em Categorias. Remove sub-links da sidebar e padroniza nomenclatura para "Arquivados". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
455 B
TypeScript
15 lines
455 B
TypeScript
import { NotesPage } from "@/components/anotacoes/notes-page";
|
|
import { getUserId } from "@/lib/auth/server";
|
|
import { fetchAllNotesForUser } from "./data";
|
|
|
|
export default async function Page() {
|
|
const userId = await getUserId();
|
|
const { activeNotes, archivedNotes } = await fetchAllNotesForUser(userId);
|
|
|
|
return (
|
|
<main className="flex flex-col items-start gap-6">
|
|
<NotesPage notes={activeNotes} archivedNotes={archivedNotes} />
|
|
</main>
|
|
);
|
|
}
|