import { useEffect, useState } from "react"; import type { Example, FullWordData } from "@sortug/langlib"; import { IconBadgeFilled, IconSparkles } from "@tabler/icons-react"; type Tab = "meanings" | "grammar" | "examples"; function Semantic({ data }: { data: FullWordData }) { return (
{example?.text || ""}
{example.ref && (Source: {example.ref}
)}{example.thai}
{example.english}
{example.context && (Context: {example.context}
)}No examples available for this word. Click "Generate More Example Sentences" to get AI-generated examples.