import { useTranslation } from "react-i18next"; import { RefreshButton } from "#/components/shared/buttons/refresh-button"; import Lightbulb from "#/icons/lightbulb.svg?react"; import { I18nKey } from "#/i18n/declaration"; interface SuggestionBubbleProps { suggestion: { key: string; value: string }; onClick: () => void; onRefresh: () => void; } export function SuggestionBubble({ suggestion, onClick, onRefresh, }: SuggestionBubbleProps) { const { t } = useTranslation(); const handleRefresh = (e: React.MouseEvent) => { e.stopPropagation(); onRefresh(); }; return (
{t(suggestion.key as I18nKey)}
); }