import { Grid, Container, Typography } from '@mui/material'; import { blueGrey } from '@mui/material/colors'; import React from 'react'; import useAuth from '../providers/AuthProvider'; import ConversationDetails from './ConversationDetails'; import useTerminal from './Terminal'; export default function MainPanel() { const { user } = useAuth(); const { selectedConversation } = useTerminal(); // if selected conversation, show details // do all fetching necessary to paint things here // join the call so to speak // show who is return ( {selectedConversation ? ( ) : ( {`Hi ${ user.displayName?.split(' ')[0] ?? 'there' }!`} Take a deep breath in. )} ); }