SF requires some new condo buildings to have 1st floor retail in locations with good retail potential. However, many of the 1st floor commercial space has a hard time to land a tenant and often stay vacant for a long time.
But I think when shopping mall is closed, they can build high rise condos on top of the mall and keep 1st floor for specialty retail, or recreational space. Maybe each building can have a gym, a restaurant, a kindergarten, an after school care, an assisted living, a long term care, a pet hotel, an Amazon drop store, some specialty stores.
But that would require high density and that model would a density of HongKong. Even Paris and London maybe too sparse for this model to work