Tips on how to get my nearly two year old go sleep in her own bed?

She’ll sleep in there for naps no problem but night time she’ll wake up crying or go to sleep crying if she’s in her bed. Any tips? We’ve been bed sharing for a year 😭🥹