aboutsummaryrefslogtreecommitdiff
path: root/src/composable/copy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/composable/copy.ts')
-rw-r--r--src/composable/copy.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/composable/copy.ts b/src/composable/copy.ts
index fb29be5..c389001 100644
--- a/src/composable/copy.ts
+++ b/src/composable/copy.ts
@@ -1,8 +1,7 @@
-import { useClipboard } from '@vueuse/core';
+import { useClipboard, type MaybeRef } from '@vueuse/core';
import { useMessage } from 'naive-ui';
-import type { Ref } from 'vue';
-export function useCopy({ source, text = 'Copied to the clipboard' }: { source: Ref; text?: string }) {
+export function useCopy({ source, text = 'Copied to the clipboard' }: { source: MaybeRef<string>; text?: string }) {
const { copy } = useClipboard({ source });
const message = useMessage();