import { getServerDictionary } from "@/lib/dictionary"
type Props = {
  lang: Lang
  text: string
}
const TranslateServer = async ({ lang, text }: Props) => {
  const locale = await getServerDictionary(lang)
  // @ts-ignore
  return <>{locale?.[text]}</>
}

export default TranslateServer
