Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ThreadSettingsRows.android.tsx

30 lines803 Bytes

1import { RadioIndicator } from "../../components/ui/RadioIndicator";
2import {
3 ModelRowContent,
4 ChoiceRowContent,
5 type ModelRowProps,
6 type ChoiceRowProps,
7} from "./ThreadSettingsRows.shared";
8​
9export function ModelRow(props: ModelRowProps) {
10 return (
11 <ModelRowContent
12 {...props}
13 labelNumberOfLines={2}
14 minimumHeight={56}
15 selectedClassName={props.selected ? "bg-secondary" : undefined}
16 surfaceClassName={props.selected ? "border-secondary" : "border-grouped-card"}
17 leadingSelection={<RadioIndicator selected={props.selected} />}
18 />
19 );
21​
22export function ChoiceRow(props: ChoiceRowProps) {
23 return (
24 <ChoiceRowContent
25 {...props}
26 minimumHeight={56}
27 leadingSelection={<RadioIndicator selected={props.selected} />}
28 />
29 );