Open History to see the last commit
1import type { ReactNode } from "react";
2import { View } from "react-native";
3
4import { AppText as Text } from "../../../components/AppText";
5
6export function SettingsSection(props: {
7 readonly title?: string;
8 readonly children: ReactNode;
9 /** Force the grouped card background; Android otherwise lists options flat. */
10 readonly card?: boolean;
11}) {
12 return (
13 <View className="gap-2">
14 {props.title ? (
15 <Text className="px-2 text-sm font-t3-medium text-foreground-muted">{props.title}</Text>
16 ) : null}
17 <View
18 className={
19 props.card
20 ? "overflow-hidden rounded-[24px] border-continuous bg-card"
21 : "overflow-hidden rounded-[24px] border-continuous bg-card android:bg-transparent"
22 }
23 >
24 {props.children}
25 </View>
26 </View>
27 );
28}