import { Box, Typography, useMediaQuery, useTheme } from "@mui/material"; interface Props { isSelf: boolean; text: string; time: string; } export default function Message({ isSelf, text, time }: Props) { const theme = useTheme(); const upMd = useMediaQuery(theme.breakpoints.up("md")); return ( {time} {text} ); }