import React, {ReactNode} from 'react'; import {Pressable, StyleProp, StyleSheet, ViewStyle} from 'react-native'; import rpx from '@/utils/rpx'; import ThemeText from './themeText'; import useColors from '@/hooks/useColors'; import IconButton from './iconButton'; interface IChipProps { containerStyle?: StyleProp; children?: ReactNode; onPress?: () => void; onClose?: () => void; } export default function Chip(props: IChipProps) { const {containerStyle, children, onPress, onClose} = props; const colors = useColors(); return ( {typeof children === 'string' ? ( {children} ) : ( children )} ); } const styles = StyleSheet.create({ container: { height: rpx(56), paddingHorizontal: rpx(18), borderRadius: rpx(28), flexDirection: 'row', alignItems: 'center', justifyContent: 'center', }, icon: { marginLeft: rpx(8), }, });