It is tricky. If the hatched chick or chicks gets rambunctious, and leave the nest, she may follow them. Leaving the rest.
I always figured that they were duds. But last year, I got a chick to hatch, she left the nest, and there were two eggs left. I was just going to toss them, they had no pipping. But as I lifted them up to give a toss, I heard a peep. So as she was on the floor of the coop, with her chick taking a nap, I just offered them to her, she tucked them under, and the next day I had TWO more chicks.
So I don't lock them away, mine are free to leave when they want, and I go with that. This year - 2 hatched, I did the same thing...got nothing more.
If you have her confined - wait 24 hours. No more than that.
Mrs K