import { storage } from "@vendetta/plugin"; import { useProxy } from "@vendetta/storage"; import { React } from "@vendetta/metro/common"; import { ScrollView, Stack, TableRowGroup, TableSwitchRow, } from "../components/TableComponents"; export default function FactsSettingsPage() { useProxy(storage); const [, forceUpdate] = React.useReducer((x) => x + 1, 0); return ( { storage.factSettings.sendAsReply = v; }} /> { storage.factSettings.includeCitation = v; }} /> { storage.enabledCommands.catfact = v; storage.pendingRestart = true; forceUpdate(); }} /> { storage.enabledCommands.dogfact = v; storage.pendingRestart = true; forceUpdate(); }} /> { storage.enabledCommands.useless = v; storage.pendingRestart = true; forceUpdate(); }} /> ); }