···16 element: React.FunctionComponent;
17 pos: number | ((sections: SettingsSection[]) => number);
18 notice?: NoticeProps;
019 _moonlight_submenu?: () => ReactElement | ReactElement[];
20 };
21···32 * @param color A color to use for the section
33 * @param pos The position in the settings menu to place the section
34 * @param notice A notice to display when in the section
035 */
36 addSection: (
37 section: string,
···39 element: React.FunctionComponent,
40 color?: string | null,
41 pos?: number | ((sections: SettingsSection[]) => number),
42- notice?: NoticeProps
043 ) => void;
4445 /**
···16 element: React.FunctionComponent;
17 pos: number | ((sections: SettingsSection[]) => number);
18 notice?: NoticeProps;
19+ onClick?: () => void;
20 _moonlight_submenu?: () => ReactElement | ReactElement[];
21 };
22···33 * @param color A color to use for the section
34 * @param pos The position in the settings menu to place the section
35 * @param notice A notice to display when in the section
36+ * @param onClick A custom action to execute when clicked from the context menu
37 */
38 addSection: (
39 section: string,
···41 element: React.FunctionComponent,
42 color?: string | null,
43 pos?: number | ((sections: SettingsSection[]) => number),
44+ notice?: NoticeProps,
45+ onClick?: () => void
46 ) => void;
4748 /**