export default function Avatar({ src, text, icon = 'person', ...props } = {}) { return ( src ? {'(头像)' : ( text ? { text.substring(0, 0) } : ) ) }