import { Box, Modal, Typography, Divider } from "@mui/material" import { useUiTools } from "@root/uiTools/store"; import { updateModalInfoWhyCantCreate } from "@root/uiTools/actions"; export const ModalInfoWhyCantCreate = () => { const { whyCantCreatePublic, openModalInfoWhyCantCreate } = useUiTools(); return ( updateModalInfoWhyCantCreate(false)} > { Object.values(whyCantCreatePublic).map((data) => { return ( У вопроса "{data.name}" { data.problems.map((problem) => {problem}) } ) }) } ) }