import { plugin } from "@vendetta"; import { storage } from "@vendetta/plugin"; import { useProxy } from "@vendetta/storage"; import { getAssetIDByName } from "@vendetta/ui/assets"; import { React } from "@vendetta/metro/common"; import { findByProps } from "@vendetta/metro"; import { View } from "react-native"; const { ScrollView } = findByProps("ScrollView"); const { TableRowGroup, TableSwitchRow, Stack } = findByProps( "TableSwitchRow", "TableRowGroup", "Stack", ); // Initialize default settings if not exist if (!storage.factSettings) { storage.factSettings = { sendAsReply: true, includeCitation: false, }; } if (!storage.listSettings) { storage.listSettings = { pluginListAlwaysDetailed: false, themeListAlwaysDetailed: false, }; } export default function Settings() { useProxy(storage); const [rerender, forceRerender] = React.useReducer((x) => x + 1, 0); return ( {/* Facts Commands Settings */} { storage.factSettings.sendAsReply = v; forceRerender(); }} /> { storage.factSettings.includeCitation = v; forceRerender(); }} /> {/* List Commands Settings */} { storage.listSettings.pluginListAlwaysDetailed = v; forceRerender(); }} /> { storage.listSettings.themeListAlwaysDetailed = v; forceRerender(); }} /> {/* Image Commands */} {/* KonoChan Commands */} {/* About Section */} ); }