mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-14 11:15:02 -05:00
602cca1047
Add bars + header + sidebar to channels.
19 lines
531 B
TypeScript
19 lines
531 B
TypeScript
import { Route, Switch } from "react-router";
|
|
import SidebarBase from "./SidebarBase";
|
|
|
|
import MemberSidebar from "./right/MemberSidebar";
|
|
|
|
export default function RightSidebar() {
|
|
return (
|
|
<SidebarBase>
|
|
<Switch>
|
|
<Route path="/server/:server/channel/:channel">
|
|
<MemberSidebar />
|
|
</Route>
|
|
<Route path="/channel/:channel">
|
|
<MemberSidebar />
|
|
</Route>
|
|
</Switch>
|
|
</SidebarBase>
|
|
);
|
|
};
|