import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import Article from '../component/Article';
export function generateChildren(pagesData) {
const children = pagesData.map((pageData, index) => {
const ArticleWrapper = () => ;
return (
);
});
const firstChild = pagesData.find((pageData) => {
return pageData.meta.disabled !== 'true';
});
children.unshift(
);
return children;
}