jitsi-roomsv2/frontend/src/components/sidebar/Sidebar.tsx
2023-01-15 16:38:57 +01:00

20 lines
563 B
TypeScript

import SidebarHeader from "./SidebarHeader";
import useSidebarVisibility from "./useSidebarVisibility";
import "./Sidebar.css";
function Sidebar() {
const { sidebarVisibility, toggleSidebarVisibility, sidebarToggleText } =
useSidebarVisibility();
return (
<div className={`sidebar sidebar-${sidebarVisibility}`}>
<SidebarHeader sidebarVisibility={sidebarVisibility} />
<div className="sidebar-footer">
<button onClick={toggleSidebarVisibility}>{sidebarToggleText}</button>
</div>
</div>
);
}
export default Sidebar;