1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/components/router/LegacyRoute.tsx
2023-10-27 18:14:18 -07:00

15 lines
372 B
TypeScript

import React from 'react';
import ViewManagerPage, { ViewManagerPageProps } from '../viewManager/ViewManagerPage';
export interface LegacyRoute {
path: string,
pageProps: ViewManagerPageProps
}
export function toViewManagerPageRoute(route: LegacyRoute) {
return {
path: route.path,
element: <ViewManagerPage {...route.pageProps} />
};
}