import { useTheme } from "@emotion/react"; import { Box } from "@mui/material"; import { useEffect } from "react"; import ChunkComponent from "../chunkComponent"; export default function PreviewChunks({ chunks, onSelectedChunk }) { const theme = useTheme(); useEffect(() => {}, [chunks]); return ( <> {chunks.map((document, index) => ( ))} ); }