import { Box, Typography, useMediaQuery, useTheme } from "@mui/material"; interface Props { unAuthenticated?: boolean; isSelf: boolean; text: string; time: string; } export default function ChatMessage({ unAuthenticated = false, isSelf, text, time }: Props) { const theme = useTheme(); const upMd = useMediaQuery(theme.breakpoints.up("md")); const messageBackgroundColor = isSelf ? "white" : unAuthenticated ? "#EFF0F5" : theme.palette.grey2.main; return ( {time} {text} ); }