diff --git a/packages/desktop/src/tree/FooterControls.tsx b/packages/desktop/src/tree/FooterControls.tsx new file mode 100644 index 0000000..e0c6c1f --- /dev/null +++ b/packages/desktop/src/tree/FooterControls.tsx @@ -0,0 +1,209 @@ +import { + Avatar, + AvatarGroup, + Box, + Button, + Container, + Divider, + Fab, + IconButton, + ListItemIcon, + Menu, + MenuItem, + Stack, + Switch, + Tooltip, + Typography, +} from '@mui/material'; +import { FiHeadphones, FiHelpCircle, FiLink, FiLogOut, FiSun } from 'react-icons/fi'; +import React, { useCallback } from 'react'; + +import ConversationLabel from '../subcomponents/ConversationLabel'; +import { SUPPORT_DISPLAY_NAME } from '../util/support'; +import { blueGrey } from '@mui/material/colors'; +import useAuth from '../providers/AuthProvider'; +import useConversations from '../providers/ConversationProvider'; +import useSearch from '../providers/SearchProvider'; + +export default function FooterControls() { + const { omniSearch } = useSearch(); + const { selectedConversation } = useConversations(); + const { user, handleLogout } = useAuth(); + + const [anchorEl, setAnchorEl] = React.useState(null); + const open = Boolean(anchorEl); + const handleClickProfileMenu = (event: React.MouseEvent) => { + setAnchorEl(event.currentTarget); + }; + const handleCloseProfileMenu = () => { + setAnchorEl(null); + }; + + const handleQuickDialSupport = useCallback(() => { + omniSearch(SUPPORT_DISPLAY_NAME); + }, [omniSearch]); + + return ( + + + + + + + + + + + + + + + + + + + + + {selectedConversation && ( + <> + + + + + + + + + + + + + {selectedConversation.members?.map((conversationUser, index) => ( + + ))} + + + + + + + + + {/* todo: not speaking mode, speaking mode, locked in mode */} + + + + + + + + )} + + + + + + + + Help + + + + + + + + Logout + + + + ); +} diff --git a/packages/desktop/src/tree/Terminal.tsx b/packages/desktop/src/tree/Terminal.tsx index bc65966..bd4e5c1 100644 --- a/packages/desktop/src/tree/Terminal.tsx +++ b/packages/desktop/src/tree/Terminal.tsx @@ -1,6 +1,7 @@ import { Box, Container, Grid } from '@mui/material'; import { ConversationList } from './ConversationList'; +import FooterControls from './FooterControls'; import MainPanel from './MainPanel'; import Navbar from './Navbar'; import NewConversationDialog from './NewConversationDialog'; @@ -57,17 +58,7 @@ export default function Terminal() { - - This is the footer controls - + {/* create chat dialog */}