1
0
Fork 0
mirror of https://github.com/revoltchat/revite.git synced 2025-01-24 01:59:00 -05:00
revite/src/components/navigation/RightSidebar.tsx

20 lines
530 B
TypeScript
Raw Normal View History

2021-06-19 15:29:04 +01:00
import { Route, Switch } from "react-router";
2021-07-05 11:23:23 +01:00
import SidebarBase from "./SidebarBase";
import MemberSidebar from "./right/MemberSidebar";
2021-06-19 15:29:04 +01:00
export default function RightSidebar() {
2021-07-05 11:25:20 +01:00
return (
<SidebarBase>
<Switch>
<Route path="/server/:server/channel/:channel">
<MemberSidebar />
</Route>
<Route path="/channel/:channel">
<MemberSidebar />
</Route>
</Switch>
</SidebarBase>
);
2021-07-05 11:23:23 +01:00
}