Baby Pigeon on its own

We have a young pigeon hanging around the terrace and doesn’t look like it’s able to fly yet. It’s not injured it just slowly walks around then settles die a while. Reviewing websites I’ve put sugar/salt water in a small bowl outside and some peas/seed in case but it’s not interested. I did see a large pigeon come down briefly and they interacted briefly but flew off within seconds and I’m just concerned leaving it overnight in case the foxes are around. Any advice welcome!