import { dirname } from "node:path";
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
export async function renderSkeleton(module) {
    const AppSkeletonModule = await import(module);
    const AppSkeleton = Object.values(AppSkeletonModule).at(0);
    const html = renderToStaticMarkup(createElement(AppSkeleton));
    const assetsPath = "file://" + dirname(dirname(module));
    return html.replaceAll(assetsPath, ".");
}
//# sourceMappingURL=render-skeleton.js.map