import Styles from "@/constants/Styles"; import { useTheme } from "@/providers/ThemeProvider"; import React, { useState } from "react"; import { Pressable, View } from "react-native"; import Text from "./Text"; type Props = { title?: string icon: React.ReactNode desc?: string rightTopInfo?: string onPress?: () => void onLongPress?: () => void borderType: 'all' | 'bottom' | 'none' titleWeight?: 'normal' | 'bold' bgColor?: string descEllipsize?: boolean textColor?: string, titleShowAll?: boolean } export default function BorderBottomItemVertical({ title, icon, desc, onPress, onLongPress, rightTopInfo, borderType, titleWeight, bgColor, descEllipsize, textColor, titleShowAll }: Props) { const { colors } = useTheme(); const textColorFix = textColor ? textColor : colors.text; return ( [ borderType == 'bottom' ? [Styles.wrapItemBorderBottom, { borderBottomColor: colors.icon + '20' }] : borderType == 'all' ? [Styles.wrapItemBorderAll, { borderColor: colors.icon + '20' }] : Styles.wrapItemBorderNone, bgColor == "transparent" ? { backgroundColor: 'transparent' } : { backgroundColor: colors.card }, ]} > {icon} {title} { rightTopInfo && {rightTopInfo} } {desc && {desc}} ) }