Community protests planned closing of maternity unit