require("../../_virtual/_rolldown/runtime.cjs");
let viem = require("viem");
//#region src/shared/tools/background-gradient.ts
/**
* Generates a background gradient based on the provided address.
*
* @param address
*/
var backgroundGradient = (address) => {
	let gradientStart = "#24354210";
	let gradientEnd = "#24354220";
	const opacity = "80";
	if (address && (0, viem.isAddress)(address)) {
		gradientStart = `#${address.slice(2, 8)}${opacity}`;
		gradientEnd = `#${address.slice(36, 42)}${opacity}`;
	}
	return `linear-gradient(90deg, ${gradientStart}, ${gradientEnd})`;
};
//#endregion
exports.backgroundGradient = backgroundGradient;
