revite/src/components/navigation/RightSidebar.tsx

20 lines
531 B
TypeScript
Raw Normal View History

2021-06-19 10:29:04 -04:00
import { Route, Switch } from "react-router";
import SidebarBase from "./SidebarBase";
import MemberSidebar from "./right/MemberSidebar";
2021-06-19 10:29:04 -04:00
export default function RightSidebar() {
return (
<SidebarBase>
<Switch>
<Route path="/server/:server/channel/:channel">
<MemberSidebar />
</Route>
<Route path="/channel/:channel">
<MemberSidebar />
</Route>
2021-06-19 10:29:04 -04:00
</Switch>
</SidebarBase>
);
};