import "./Sidebar.css"; import React, { useEffect, useState } from "react"; import { SidebarDesktop } from "../SidebarDesktop/SidebarDesktop"; import { SidebarMobile } from "../SidebarMobile/SidebarMobile"; export const Sidebar: React.FC = ({ closeStream, exitPopup, isMobile, heightDevice }) => { const [isMuted, setMuted] = useState(true); const [isControl, setControl] = useState(false); const [height, setHeight] = useState(heightDevice); console.log(isMobile); const handleMuteClick = () => { setMuted((prev) => !prev); }; const handleControlClick = () => { setControl((prev) => !prev); }; return ( <> {isMobile ? ( ) : ( )} ); };