2022-10-24 10:57:25 -04:00
|
|
|
import React from 'react';
|
|
|
|
import { Route } from 'react-router-dom';
|
|
|
|
|
|
|
|
import ViewManagerPage, { ViewManagerPageProps } from '../../components/viewManager/ViewManagerPage';
|
|
|
|
|
|
|
|
export interface LegacyRoute {
|
|
|
|
path: string,
|
|
|
|
pageProps: ViewManagerPageProps
|
|
|
|
}
|
|
|
|
|
|
|
|
export function toViewManagerPageRoute(route: LegacyRoute) {
|
|
|
|
return (
|
|
|
|
<Route
|
|
|
|
key={route.path}
|
|
|
|
path={route.path}
|
|
|
|
element={
|
|
|
|
<ViewManagerPage {...route.pageProps} />
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-11-02 01:21:02 -04:00
|
|
|
export * from './admin';
|
2023-03-01 09:35:21 -05:00
|
|
|
export * from './public';
|
2022-11-01 16:44:51 -04:00
|
|
|
export * from './user';
|