import { Design } from '@revenge-mod/discord/design' import { ScrollView, View } from 'react-native' import type { PluginApi } from '@revenge-mod/plugins/types' import type { ZiplineStorage } from '../lib/types' export default function Settings({ api, }: { api: PluginApi<{ jsonStorage: ZiplineStorage }> }) { const { TableRowGroup, TableSwitchRow, TextInput, Text, Card, Stack } = Design const storage = api.jsonStorage.use() return ( Zipline Integration Upload attachments and shorten URLs through your self-hosted Zipline instance. Requires an API token from your Zipline dashboard (Account Settings → Token). api.jsonStorage.set({ host: v })} /> api.jsonStorage.set({ token: v })} /> api.jsonStorage.set({ autoUpload: v }) } /> api.jsonStorage.set({ autoShorten: v }) } /> ) }