import { jsx as _jsx } from "react/jsx-runtime";
import { generateThemeScript } from "./theme-script.js";
/**
 * Server component that renders the theme initialization script.
 *
 * This renders a synchronous inline script that applies the theme
 * to the HTML element before React hydration, preventing FOUC.
 */
export function ThemeScript({ config, nonce }) {
    const scriptContent = generateThemeScript(config);
    return (_jsx("script", { nonce: nonce, dangerouslySetInnerHTML: { __html: scriptContent } }));
}
//# sourceMappingURL=ThemeScript.js.map