revite/src/components/navigation/RightSidebar.tsx

20 lines
416 B
TypeScript
Raw Normal View History

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