An empty community centre could be converted into flats under new plans.