feat: mention

This commit is contained in:
gosangam
2026-06-10 16:29:44 +05:30
parent 482a845f37
commit 909ae67320
10 changed files with 628 additions and 66 deletions
-23
View File
@@ -488,17 +488,6 @@ export function TextSelectionToolbar() {
icon: <FolderPlus className="size-5" />,
onClick: onSaveToCollection,
},
{
key: "mention",
label: "Mention",
description: "Tag someone with this quote",
icon: <AtSign className="size-5" />,
onClick: () => {
setShowMore(false);
if (isMobile) restoreSelection();
else interactingRef.current = false;
},
},
];
const publicMoreItems: MoreItem[] = [
@@ -532,18 +521,6 @@ export function TextSelectionToolbar() {
await onBookmarkOrCollect();
},
},
{
key: "mention-public",
label: "Mention",
description: "Tag someone with this quote",
icon: <AtSign className="size-5" />,
locked: true,
onClick: async () => {
setShowMore(false);
if (!(await requireAuth())) return;
// TODO: Implement Mention
},
},
];
const moreItems = isAuthed ? authedMoreItems : publicMoreItems;