import { Check, ChevronRight, Circle, Square, type LucideIcon } from 'lucide-react-native'
import { Pressable, Text, View } from 'react-native'
import { useTheme } from '../../ui/theme-context'
import { useThemedStyles } from '../../ui/use-themed-styles'
import { createBotStyles } from './styles'
export function BotAction({ label, icon: Icon, disabled = false, danger = false, navigate = false, onPress }: {
label: string; icon: LucideIcon; disabled?: boolean; danger?: boolean; navigate?: boolean; onPress: () => void
}) {
const styles = useThemedStyles(createBotStyles)
const { colors } = useTheme()
return [styles.detailAction, pressed && styles.rosterPressed, disabled && styles.footerDisabled]}>
{label}
{navigate && }
}
export function BotChoice({ label, description, checked, multiple = false, disabled = false, onPress }: {
label: string; description?: string; checked: boolean; multiple?: boolean; disabled?: boolean; onPress: () => void
}) {
const styles = useThemedStyles(createBotStyles)
const { colors } = useTheme()
const Mark = checked ? Check : multiple ? Square : Circle
return [styles.choice, checked && styles.selected, pressed && styles.choicePressed, disabled && styles.footerDisabled]}>
{label}{!!description && {description}}
}