import "@/styles/globals.css";
import { Suspense } from "react";
import { fetchWordsByToneAndSyllables } from "@/actions/tones";
import ToneSelectorClient from "@/components/tones/ToneSelectorClient";
import { Skeleton } from "@/components/ui/skeleton"; // For Suspense fallback
export const getConfig = async () => {
return {
render: "static", // Or 'dynamic' if you prefer SSR for every request
};
};
// Function to fetch the initial word on the server
async function InitialWordLoader() {
// Fetch a random 1-syllable Thai word with any tone initially
const tones = ["falling", "falling"];
const initialWords = await fetchWordsByToneAndSyllables(tones);
return