Newer
Older
taehui / taehui-fe / src / app / [language] / components / HitText.tsx
@Taehui Taehui on 17 Mar 326 bytes 2024-03-17 오후 3:50
import { useTranslations } from "next-intl";

export default function HitText({
  hitBefore,
  hit,
}: {
  hitBefore: string;
  hit: string;
}) {
  const t = useTranslations();

  return (
    <span>
      {t("hit01", { hitBefore })}
      <br />
      {t("hit02", { hit })}
      <br />
      {t("hit03")}
    </span>
  );
}