Just wondering what is considered safe for a newborn to sleep in?

Britney • I'm a happily married to the love of my life and I'm a 27 year old who is graduating university soon this year and is hoping to start having some beautiful babies soon! We have had one pregnancy and miscarriage at 7 weeks so far hoping for a rainbow baby
I've heard a bassinet with mesh sides is fine with nothing else in it and a solid mattress or a crib with nothing in it but are bassinets with fabric sides safe? Thanks!