"use client";

import { useT } from "@/context/translation-map";

interface TranslateProps {
  value: string;
}

/** ترجمه پایدار SSR/CSR — بدون placeholder که mismatch بسازد */
export const Translate = ({ value }: TranslateProps) => {
  const t = useT();
  return <span suppressHydrationWarning>{t(value)}</span>;
};
