import { TSharedEntry } from "@/shared/dictionary-type"; import { useTranslations } from "next-intl"; interface DictionaryEntryProps { entry: TSharedEntry; } export function DictionaryEntry({ entry }: DictionaryEntryProps) { const t = useTranslations("dictionary"); return (
{entry.ipa && ( [{entry.ipa}] )} {entry.partOfSpeech && ( {entry.partOfSpeech} )}

{t("definition")}

{entry.definition}

{entry.example && (

{t("example")}

{entry.example}

)}
); }