"use client";

import { useEffect } from "react";
import type { Locale } from "@/types/content";

export function LangAttribute({ locale }: { locale: Locale }) {
  useEffect(() => {
    document.documentElement.lang = locale === "id" ? "id" : "en";
  }, [locale]);

  return null;
}
