import { useState } from 'react'; import type { Action } from 'librechat-data-provider'; import GearIcon from '~/components/svg/GearIcon'; export default function Action({ action, onClick }: { action: Action; onClick: () => void }) { const [isHovering, setIsHovering] = useState(false); return (
setIsHovering(true)} onMouseLeave={() => setIsHovering(false)} >
{action.metadata.domain}
{isHovering && ( )}
); }