One switch an app contributes to the control center (MICA-247). See useControlCenter
for the rules the shell holds it to.
icon is the export name of an icon in @mica/sdk ('MoonIcon'), not a component and
not a path: it has to cross the add-on seam as data, and the shell draws it from its own
copy of the set. onToggle is called with nothing when the player taps the switch; the
app decides what that means and reports the result back with setToggleActive.
One switch an app contributes to the control center (MICA-247). See
useControlCenterfor the rules the shell holds it to.iconis the export name of an icon in@mica/sdk('MoonIcon'), not a component and not a path: it has to cross the add-on seam as data, and the shell draws it from its own copy of the set.onToggleis called with nothing when the player taps the switch; the app decides what that means and reports the result back withsetToggleActive.