jitsi-roomsv2/frontend/src/components/sidebar/Sidebar.tsx

20 lines
563 B
TypeScript
Raw Normal View History

2023-01-07 19:06:04 +01:00
import SidebarHeader from "./SidebarHeader";
import useSidebarVisibility from "./useSidebarVisibility";
import "./Sidebar.css";
function Sidebar() {
const { sidebarVisibility, toggleSidebarVisibility, sidebarToggleText } =
useSidebarVisibility();
return (
2023-01-10 19:04:53 +01:00
<div className={`sidebar sidebar-${sidebarVisibility}`}>
2023-01-07 19:06:04 +01:00
<SidebarHeader sidebarVisibility={sidebarVisibility} />
<div className="sidebar-footer">
<button onClick={toggleSidebarVisibility}>{sidebarToggleText}</button>
</div>
</div>
);
}
export default Sidebar;