'use client' import { useState } from 'react' interface TeamAvatarProps { name: string img: string color: string } export default function TeamAvatar({ name, img, color }: TeamAvatarProps) { const [failed, setFailed] = useState(false) return (