mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-05 15:30:40 +00:00
makeshift notes page
This commit is contained in:
parent
9a5e879a62
commit
79e2673080
8 changed files with 57 additions and 7 deletions
24
apps/web/app/(dash)/note/[noteid]/page.tsx
Normal file
24
apps/web/app/(dash)/note/[noteid]/page.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { getNoteFromId } from "@/app/actions/fetchers";
|
||||
import { NotebookIcon } from "lucide-react";
|
||||
|
||||
async function Page({ params }: { params: { noteid: string } }) {
|
||||
const note = await getNoteFromId(params.noteid as string);
|
||||
|
||||
if (!note.success) {
|
||||
return <div>Failed to load note</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="max-w-3xl mt-16 md:mt-32 flex mx-auto w-full flex-col">
|
||||
<div className="flex items-center gap-2 text-xs">
|
||||
<NotebookIcon className="w-3 h-3" /> Note
|
||||
</div>
|
||||
<h1 className="text-white w-full font-medium text-2xl text-left mt-2">
|
||||
{note.data?.title}
|
||||
</h1>
|
||||
<div className="w-full pb-20 mt-12">{note.data?.content}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Page;
|
||||
Loading…
Add table
Add a link
Reference in a new issue