mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
464 B
TypeScript
16 lines
464 B
TypeScript
4 years ago
|
import React from 'react';
|
||
|
import { Personal } from './Personal';
|
||
|
import { Route, Switch, Redirect } from 'react-router-dom';
|
||
4 years ago
|
import { Group } from './Group';
|
||
4 years ago
|
|
||
|
export const MainContent: React.FC = React.memo(() => {
|
||
|
return (
|
||
|
<Switch>
|
||
|
<Route path="/main/personal" component={Personal} />
|
||
4 years ago
|
<Route path="/main/group/:groupId" component={Group} />
|
||
4 years ago
|
<Redirect to="/main/personal" />
|
||
|
</Switch>
|
||
|
);
|
||
|
});
|
||
|
MainContent.displayName = 'MainContent';
|