merge frontend website into scripts repo
This commit is contained in:
10
frontend/src/components/handleCopy.tsx
Normal file
10
frontend/src/components/handleCopy.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
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" />,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user