For an example of a (very simple) map app built in Shiny using the well known & much loved North Carolina shapefile that comes with {sf} consider this example; it is turned inside out compared to your use case (the map is for clicking and text is for displaying information) but it is a start...