import { ReactNative } from "@vendetta/metro/common"; import { storage } from "@vendetta/plugin"; import { useProxy } from "@vendetta/storage"; import { getAssetIDByName } from "@vendetta/ui/assets"; import { ErrorBoundary, Forms } from "@vendetta/ui/components"; const { FormSwitchRow, FormIcon, FormSection, FormDivider } = Forms; const Icons = { List: getAssetIDByName("ic_list"), Message: getAssetIDByName("ic_message"), Copy: getAssetIDByName("ic_copy_message_link"), Info: getAssetIDByName("ic_info"), Theme: getAssetIDByName("ic_theme"), Plugin: getAssetIDByName("ic_plugins"), }; export default () => { useProxy(storage); if (!storage.factSettings) { storage.factSettings = { sendAsReply: true, includeCitation: false, }; } if (!storage.listSettings) { storage.listSettings = { pluginListAlwaysDetailed: false, themeListAlwaysDetailed: false, }; } return ( {/* Fact Commands Settings */} } onValueChange={(value: boolean) => { storage.factSettings.sendAsReply = value; }} value={storage.factSettings.sendAsReply} /> } onValueChange={(value: boolean) => { storage.factSettings.includeCitation = value; }} value={storage.factSettings.includeCitation} /> {/* Plugin List Settings */} } onValueChange={(value: boolean) => { storage.listSettings.pluginListAlwaysDetailed = value; }} value={storage.listSettings.pluginListAlwaysDetailed} /> {/* Theme List Settings */} } onValueChange={(value: boolean) => { storage.listSettings.themeListAlwaysDetailed = value; }} value={storage.listSettings.themeListAlwaysDetailed} /> ); };