GoonCord/src/ui/settings/components/SettingsSection.tsx

28 lines
937 B
TypeScript
Raw Normal View History

import { React } from "@metro/common";
2022-10-19 07:58:32 +01:00
import { Forms } from "@ui/components";
2022-10-23 01:39:02 +01:00
import { getAssetIDByName } from "@ui/assets";
2022-10-19 07:58:32 +01:00
const { FormRow, FormSection } = Forms;
interface SettingsSectionProps {
navigation: any;
}
export default function SettingsSection({ navigation }: SettingsSectionProps) {
return (
<FormSection key="Vendetta" title="Vendetta">
<FormRow
2022-10-23 01:39:02 +01:00
label="General"
leading={() => <FormRow.Icon source={getAssetIDByName("settings")} />}
trailing={FormRow.Arrow}
onPress={() => navigation.push("VendettaSettings")}
/>
2022-10-23 00:38:04 +01:00
<FormRow
label="Asset Browser"
2022-10-23 01:39:02 +01:00
leading={() => <FormRow.Icon source={getAssetIDByName("grid")} />}
2022-10-23 00:38:04 +01:00
trailing={FormRow.Arrow}
onPress={() => navigation.push("VendettaAssetBrowser")}
/>
</FormSection>
)
}