mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
Add pop-up module for the slash commands
This commit is contained in:
@@ -99,11 +99,16 @@ interface OnlineReferenceCardProps extends OnlineReferenceData {
|
||||
}
|
||||
|
||||
function GenericOnlineReferenceCard(props: OnlineReferenceCardProps) {
|
||||
const [isHovering, setIsHovering] = useState(false);
|
||||
|
||||
if (!props.link) {
|
||||
console.log("invalid link", props);
|
||||
return null;
|
||||
}
|
||||
|
||||
const domain = new URL(props.link).hostname;
|
||||
const favicon = `https://www.google.com/s2/favicons?domain=${domain}`;
|
||||
|
||||
const [isHovering, setIsHovering] = useState(false);
|
||||
|
||||
const handleMouseEnter = () => {
|
||||
console.log("mouse entered card");
|
||||
setIsHovering(true);
|
||||
|
||||
Reference in New Issue
Block a user