Spaces:
Running
Running
File size: 773 Bytes
819bacd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import { Box, useTheme } from "@mui/material";
import Grid from "@mui/material/Unstable_Grid2";
import MessageBubble from "../messageBubble";
export default function ChunkInteface({ chunkTest }) {
const theme = useTheme();
return (
<>
<Box
display="flex"
flexDirection="column"
flexGrow={1}
padding={2}
style={{
border: "2px solid black",
overflow: "hidden",
overflowY: "scroll",
borderRadius: "8px",
border: "1px solid #ccc",
backgroundColor: theme.palette.background.default,
height: "50%",
}}
>
{chunkTest ? (
<MessageBubble text={chunkTest.text} isSender={false} />
) : null}
</Box>
</>
);
}
|