How to help crying baby

C

She is almost 2 weeks old and for the past few nights she's had to sleep with us in our bed because she will cry relentlessly if not. We want her to sleep in her own bed, but she only wants to be next to us. She stops crying instantly when one of us picks her up. What can help her?