import { useTranslation } from "react-i18next"; import { I18nKey } from "#/i18n/declaration"; export type Suggestion = { label: I18nKey | string; value: string }; interface SuggestionItemProps { suggestion: Suggestion; onClick: (value: string) => void; } export function SuggestionItem({ suggestion, onClick }: SuggestionItemProps) { const { t } = useTranslation(); return (