text select more options update
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useState, useEffect, useRef } from "react";
|
import { useEffect, useRef } from "react";
|
||||||
import { createPortal } from "react-dom";
|
import { createPortal } from "react-dom";
|
||||||
import { useCopyFeedback, type Position } from "./shared";
|
import { useCopyFeedback, type Position } from "./shared";
|
||||||
import { buildHighlightUrl } from "@/lib/text-highlight";
|
import { Bookmark, FolderPlus, AtSign } from "lucide-react";
|
||||||
import { cn } from "@/lib/utils";
|
|
||||||
import { Bookmark, FolderPlus, Link2, AtSign, Check } from "lucide-react";
|
|
||||||
import {
|
import {
|
||||||
Drawer,
|
Drawer,
|
||||||
DrawerClose,
|
DrawerClose,
|
||||||
@@ -69,17 +67,6 @@ export function MorePopover({
|
|||||||
icon: <FolderPlus className="size-5" />,
|
icon: <FolderPlus className="size-5" />,
|
||||||
onClick: onSaveToCollection,
|
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",
|
key: "mention",
|
||||||
label: "Mention",
|
label: "Mention",
|
||||||
|
|||||||
Reference in New Issue
Block a user