There is a problem with customizing a button and put it at top right of a Map Container. here is my reactjs code for Map box.
<MapContainer style={{width:"32vw", height:"32vh",
alignItems:"center", alignContent:"center",
justifyContent:"center", justifyItems:"center", display:"flex"}} center={[0, 0]}
zoom={13} scrollWheelZoom={true} zoomControl={false}>
<TileLayer
attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
{renderMapBox(announcement.anc_status, announcement.volunteers)}
</MapContainer>
how can I add this switch button to the top right of the map box? (like zoomControl that is usable in map)
{announcement.anc_status === "P" && announcement.volunteers.length > 1 && <AllVolunteerSwitch onChange={viewAllHost}/>}