import { IonItem, IonLabel, IonText } from "@ionic/react"; import { SearchResultEntry } from "../types"; /** * EntryRow Component * * Internal component for rendering individual entry rows */ interface EntryRowProps { index: number; item: SearchResultEntry; isSelected: boolean; style: React.CSSProperties; onClick: (item: SearchResultEntry, index: number) => void; } export const EntryRow: React.FC = ({ index, item, isSelected, style, onClick }) => { if (!item) { return (

加载中...

); } return ( onClick(item, index)} >
{item.keyword} {item.entry_count > 1 && ( ({item.entry_count}) )}
); };