'use strict';

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const viem = require('viem');

const backgroundGradient = (address) => {
  let gradientStart = "#24354210";
  let gradientEnd = "#24354220";
  const opacity = "80";
  if (address && viem.isAddress(address)) {
    gradientStart = `#${address.slice(2, 8)}${opacity}`;
    gradientEnd = `#${address.slice(36, 42)}${opacity}`;
  }
  return `linear-gradient(90deg, ${gradientStart}, ${gradientEnd})`;
};

exports.backgroundGradient = backgroundGradient;
