import React, { useState, type ReactNode } from "react";
import "../assets/fonts/Hani/style.css";

function ChineseFontLoader({ children }: { children: ReactNode }) {
  const [fontIdx, setFont] = useState(0);
  const fontCount = 12;
  function changeFont() {
    if (fontIdx === fontCount) setFont(0);
    else setFont((prev) => prev + 1);
  }
  return <div>{children}</div>;
}

export default ChineseFontLoader;
