Would it harm baby???

(I'm a FTM) So my daughter is 17 days old and while she's a pretty decent sleeper and it'd be easy enough to sleep while she does, my insomnia has been horrible recently and I'm getting no sleep at all even when I'm absolutely exhausted. I have a friend who's willing to watch her while I get some sleep and suggested I take a unisom sleeping pill to achieve sleep. I know they were fine to take while I was pregnant but since I'm breastfeeding I dont nessecarily want to take one if theres a chance I'd be picked up by baby in my milk? I'm pumping some for my friend so she can feed her if she needs too should I pump extra or will it be completely fine and I'm worried about nothing 😅