import * as React from 'react'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemButton from '@mui/material/ListItemButton'; import Divider from '@mui/material/Divider'; import ListItemIcon from '@mui/material/ListItemIcon'; import AddIcon from '@mui/icons-material/Add'; import RemoveIcon from '@mui/icons-material/Remove'; import Box from '@mui/material/Box'; import Collapse from '@mui/material/Collapse'; import { styled } from '@mui/material/styles'; const Item = styled('div')(({ theme }) => ({ padding: '0px', borderRadius: '4px', textAlign: 'left', })); const ItemComponent = (props) => { const {item, index, openSelf} = props; const [open, setOpen] = React.useState(false); const handleClick = () => { setOpen(!open); }; return ( { item.children && item.children.length > 0 ? { open ? : } :     }  {item.codeTitle} {item.codeName} { item.children && item.children.map(function(item, index) { //
item.codeTitle
console.log('thkim 2024-03-21 11:29 %o', item); return ( ); }) }
); }; export default function ReferenceCodePopupDialogCotentsListItem(props) { const {data} = props; const [selectedValue, setSelectedValue] = React.useState('a'); const handleChange = (event) => { setSelectedValue(event.target.value); }; return ( { data && data.map(function(item, index) { return ( ); }) } ); }