import React from 'react'; import type { ViewStyle } from 'react-native'; import { StyleSheet, View } from 'react-native'; import { MultiSelect } from '../multi-select'; import { SelectInput } from '../select-input'; import { SelectText } from '../select-text'; import { useSelectFieldType } from './select-field-type.hooks'; type Props = { separatedMultiple?: boolean; widthThreshold?: number; }; export const SelectFieldType = ({ separatedMultiple, widthThreshold }: Props) => { const { multiple, selectedOptions, selectedOptionLabel, isSearchable } = useSelectFieldType(); const renderSelectFieldType = () => { if (multiple) { return ( ); } if (isSearchable) { return ; } return ; }; return {renderSelectFieldType()}; }; type Styles = { container: ViewStyle; }; const styles = StyleSheet.create({ container: { flex: 1, height: '100%', justifyContent: 'center', }, });