I need to simply set a state if the data from the server exists.
const [names, setNames] = useState([...details?.names])
The details object i