mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-15 12:19:17 +00:00
11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
import { ClipboardCheck } from "lucide-react";
|
|
import { toast } from "sonner";
|
|
|
|
export default function handleCopy(type: string, value: string) {
|
|
navigator.clipboard.writeText(value);
|
|
|
|
toast.success(`copied ${type} to clipboard`, {
|
|
icon: <ClipboardCheck className="h-4 w-4" />,
|
|
});
|
|
}
|