// // import React from 'react';
// // import { TrackToggle, DisconnectButton } from '@livekit/components-react';
// // import SettingsMenu from '@/lib/SettingsMenu';
// // import { MaterialSymbol } from 'material-symbols';
// // import '../../styles/CustomControlBar.css';
// // const CustomControlBar = ({ roomName, room }) => {
// // const [recording, setRecording] = React.useState(false);
// // const [showSettings, setShowSettings] = React.useState(false);
// // React.useEffect(() => {
// // if (room) {
// // room.on('recordedStatusChanged', () => {
// // setRecording(room.isRecording);
// // });
// // return () => {
// // room.off('recordedStatusChanged');
// // };
// // }
// // }, [room]);
// // const handleCopyLink = () => {
// // navigator.clipboard.writeText(window.location.href);
// // };
// // return (
// //
// //
// //
// // {roomName}
// //
// //
// //
// //
// //
// //
// // {recording && (
// //
// // {/* */}
// //
// // )}
// //
// //
// //
// //
// //
// // {showSettings && setShowSettings(false)} />}
// //
// //
// // );
// // };
// // export default CustomControlBar;
// import { TrackToggle, DisconnectButton, RoomAudioRenderer, GridLayout } from '@livekit/components-react';
// import { useState, useEffect } from 'react';
// function CustomControlBar({ room, roomName }) {
// const [recording, setRecording] = useState(false);
// // Update recording status
// useEffect(() => {
// if (room) {
// const updateRecordingStatus = () => setRecording(room.isRecording);
// room.on(RoomEvent.RecordingStarted, updateRecordingStatus);
// room.on(RoomEvent.RecordingStopped, updateRecordingStatus);
// return () => {
// room.off(RoomEvent.RecordingStarted, updateRecordingStatus);
// room.off(RoomEvent.RecordingStopped, updateRecordingStatus);
// };
// }
// }, [room]);
// // Copy room link to clipboard
// const handleCopyLink = () => {
// navigator.clipboard.writeText(window.location.href)
// .then(() => alert('Link copied to clipboard!'))
// .catch((err) => console.error('Failed to copy link:', err));
// };
// return (
//
// {/* Left: Room Name Box */}
//
// {roomName}
//
//
// {/* Center: Control Buttons */}
//
//
//
// {recording && (
//
// radio_button_checked
//
// )}
//
//
// call_end
//
//
// {/* Right: Settings Button */}
//
// {SHOW_SETTINGS_MENU && (
//
// )}
//
//
// );
// }