text select more options update

This commit is contained in:
gosangam
2026-05-10 01:02:15 +05:30
parent 9c72ce814d
commit bf1ff47d3e
+2 -15
View File
@@ -1,11 +1,9 @@
"use client";
import { useState, useEffect, useRef } from "react";
import { useEffect, useRef } from "react";
import { createPortal } from "react-dom";
import { useCopyFeedback, type Position } from "./shared";
import { buildHighlightUrl } from "@/lib/text-highlight";
import { cn } from "@/lib/utils";
import { Bookmark, FolderPlus, Link2, AtSign, Check } from "lucide-react";
import { Bookmark, FolderPlus, AtSign } from "lucide-react";
import {
Drawer,
DrawerClose,
@@ -69,17 +67,6 @@ export function MorePopover({
icon: <FolderPlus className="size-5" />,
onClick: onSaveToCollection,
},
{
key: "copy-link",
label: copied ? "Link Copied!" : "Copy Link",
description: "Copy a link to this page",
icon: copied ? (
<Check className="size-5" />
) : (
<Link2 className="size-5" />
),
onClick: () => copy(buildHighlightUrl(selectedText)),
},
{
key: "mention",
label: "Mention",