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

ThreadSettingsRows.android.tsx

29 lines718 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 leadingSelection={<RadioIndicator selected={props.selected} />}
17 />
18 );
20​
21export function ChoiceRow(props: ChoiceRowProps) {
22 return (
23 <ChoiceRowContent
24 {...props}
25 minimumHeight={56}
26 leadingSelection={<RadioIndicator selected={props.selected} />}
27 />
28 );