import {Grid} from "@mui/material"; import Typography from "@mui/material/Typography"; import Social from "../../components/SocialLink"; import * as React from "react"; export const AddressItem = ({item}) => { return ( <> {item[0].toString() || 'no name'} PHONES {Array.isArray(item) && item.length > 0 && item[1]?.phones.map((i, index) => {i.toString() || 'phones'} )} ADDRESS {Array.isArray(item) && item.length > 0 ? item[1]?.address : 'address'} EMAIL {Array.isArray(item) && item.length > 0 &&item[1]?.email.map(i => { i.toString() || 'email' } ) } SOCIAL NETWORKS {(item[1]["social networks"] || []).map(item => )} ) }