The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/providers/RouterProvider.tsx

16 lines
537 B

import { RouterContext } from '@rocket.chat/ui-contexts';
import type { RouterContextValue } from '@rocket.chat/ui-contexts';
import type { ReactNode } from 'react';
import { Router } from '../router';
/** @deprecated consume it from the `RouterContext` instead */
export const router: RouterContextValue = new Router();
type RouterProviderProps = {
children?: ReactNode;
};
const RouterProvider = ({ children }: RouterProviderProps) => <RouterContext.Provider children={children} value={router} />;
export default RouterProvider;