import { TSharedEntry } from "@/shared/dictionary-type"; interface DictionaryEntryProps { entry: TSharedEntry; } export function DictionaryEntry({ entry }: DictionaryEntryProps) { return (
{/* 音标和词性 */}
{entry.ipa && ( [{entry.ipa}] )} {entry.partOfSpeech && ( {entry.partOfSpeech} )}
{/* 释义 */}

释义

{entry.definition}

{/* 例句 */} {entry.example && (

例句

{entry.example}

)}
); }