import { useAuthenticatedPluginIcon } from '@/hooks/useAuthenticatedPluginResource'; import { cn } from '@/lib/utils'; export function AuthenticatedPluginIcon({ author, name, alt = '', className, }: { author: string; name: string; alt?: string; className?: string; }) { const icon = useAuthenticatedPluginIcon( author, name, Boolean(author && name), ); if (!icon.url || icon.error) { return ( ); } return {alt}; }