import { outputFile } from 'fs-extra';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import { distPath } from './file';
import App from '../components/App';
const appReducer = (state = {}, action) => {
return state;
}
export const renderApp = (radar, pageName) => {
// Create a new Redux store instance
const store = createStore(appReducer, {
...radar,
pageName
});
// Render the component to a string
const html = renderToString(