import 'bootstrap/dist/css/bootstrap.min.css'; import './FiguresDisplay.css'; function FiguresDisplay({ figures, setModalState }) { const openModal = (index) => { setModalState({ show: true, currentIndex: index }); }; if (figures.length == 0) { return (
Start the analysis to see the results.
); } else { return ( <>
openModal(0)}> Main Figure
{figures.slice(1).map((fig, idx) => (
openModal(idx + 1)}> {`Fig-${idx
))}
); } } export default FiguresDisplay;