We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f72589 commit 4b26354Copy full SHA for 4b26354
apps/webapp/app/components/primitives/CopyableText.tsx
@@ -4,9 +4,17 @@ import { SimpleTooltip } from "~/components/primitives/Tooltip";
4
import { useCopy } from "~/hooks/useCopy";
5
import { cn } from "~/utils/cn";
6
7
-export function CopyableText({ value, className }: { value: string; className?: string }) {
+export function CopyableText({
8
+ value,
9
+ copyValue,
10
+ className,
11
+}: {
12
+ value: string;
13
+ copyValue?: string;
14
+ className?: string;
15
+}) {
16
const [isHovered, setIsHovered] = useState(false);
- const { copy, copied } = useCopy(value);
17
+ const { copy, copied } = useCopy(copyValue ?? value);
18
19
return (
20
<span
0 commit comments