import { Spin } from 'antd'; import React from 'react'; import { useRequest } from '../api-client'; import { RouteSwitchContext } from './context'; import { RouteSwitchProviderProps } from './types'; export function RouteSwitchProvider(props: RouteSwitchProviderProps) { const { children, components, routes } = props; return {children}; } export function RemoteRouteSwitchProvider(props: RouteSwitchProviderProps) { const { data, loading } = useRequest({ url: 'uiRoutes:getAccessible', }); if (loading) { return ; } return ; }