import { useState } from 'react';
export const useCopyToClipboard = (value: string | HTMLImageElement) => {
const [copied, setCopied] = useState(false);
typeof value === 'string' && navigator.clipboard.writeText(value).then(() => setCopied(true));
};