"use client"
import{j as n}from"./chunk-6IZLSA2Z.mjs";import i from"next/image";import{useEffect as g,useState as r}from"react";import{jsx as d}from"react/jsx-runtime";function v(t){let[c,o]=r(!0),[l,e]=r(t.src);g(()=>e(t.src),[t.src]);let m=s=>{o(!1);let a=s.target;a.naturalWidth<=16&&a.naturalHeight<=16&&e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)};return d(i,{...t,src:l,alt:t.alt,className:n(c?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)},unoptimized:!0})}export{v as a};
