@mica/sdk (SDK contract v1)
    Preparing search index...

    Interface ControlCenterToggle

    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.

    interface ControlCenterToggle {
        active: boolean;
        icon: string;
        id: string;
        label: string;
        onToggle: () => void;
    }
    Index
    active: boolean
    icon: string
    id: string
    label: string
    onToggle: () => void