/**
* Trouve-KA — favicon d'un domaine (icônes DuckDuckGo, repli neutre)
* Author: Simon-Pierre Boucher
* Contact: contact@spboucher.ai
*/
"use client";
import { useState } from "react";
interface FaviconProps {
domain: string;
}
/** Petit favicon décoratif d'un domaine; repli sur une pastille neutre. */
export function Favicon({ domain }: FaviconProps) {
const [failed, setFailed] = useState(false);
if (failed || !domain) {
return (
);
}
return (
// eslint-disable-next-line @next/next/no-img-element
setFailed(true)}
/>
);
}