const ClipboardUtils = {
  async copyImage(blob) {
    try {
      await navigator.clipboard.write([
        new ClipboardItem({ [blob.type]: blob })
      ]);
      return true;
    } catch (err) {
      console.error('Clipboard write failed:', err);
      return false;
    }
  },

  async copyText(text) {
    try {
      await navigator.clipboard.writeText(text);
      return true;
    } catch (err) {
      console.error('Clipboard text write failed:', err);
      return false;
    }
  },

  generateHtmlSnippet(filename, dimensions) {
    return `<img src="/assets/${filename}" width="${dimensions.w}" height="${dimensions.h}" alt="">`;
  }
};