* wip: new sync * wip: restructure routes * update * feat: improve sync * feat: repost with multi-account * feat: improve sync * feat: publish with multi account * fix: settings screen * feat: add zap for multi accounts
31 lines
700 B
TypeScript
31 lines
700 B
TypeScript
import { cn } from "@/commons";
|
|
import { Note } from "@/components/note";
|
|
import type { LumeEvent } from "@/system";
|
|
import { memo } from "react";
|
|
|
|
export const TextNote = memo(function TextNote({
|
|
event,
|
|
className,
|
|
}: {
|
|
event: LumeEvent;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<Note.Provider event={event}>
|
|
<Note.Root className={cn("", className)}>
|
|
<div className="flex items-center justify-between px-3 h-14">
|
|
<Note.User />
|
|
<Note.Menu />
|
|
</div>
|
|
<Note.Content className="px-3" />
|
|
<div className="flex items-center gap-2 px-3 mt-3 h-14">
|
|
<Note.Open />
|
|
<Note.Reply />
|
|
<Note.Repost />
|
|
<Note.Zap />
|
|
</div>
|
|
</Note.Root>
|
|
</Note.Provider>
|
|
);
|
|
});
|