import Styles from "@/constants/Styles"; import React from "react"; import { Pressable, Text, View } from "react-native"; import LabelStatus from "./labelStatus"; import { Feather } from "@expo/vector-icons"; type Props = { title: string subtitle?: string | React.ReactNode icon: React.ReactNode desc?: string rightTopInfo?: string onPress?: () => void borderType: 'all' | 'bottom' | 'none' leftBottomInfo?: React.ReactNode | string rightBottomInfo?: React.ReactNode | string } export default function BorderBottomItem({ title, subtitle, icon, desc, onPress, rightTopInfo, borderType, leftBottomInfo, rightBottomInfo }: Props) { return ( {icon} {title} { subtitle && typeof subtitle == "string" ? {subtitle} : {subtitle} } { rightTopInfo && {rightTopInfo} } {desc && {desc}} { (leftBottomInfo || rightBottomInfo )&& ( { typeof leftBottomInfo == 'string' ? {leftBottomInfo} : leftBottomInfo } { typeof rightBottomInfo == 'string' ? {rightBottomInfo} : rightBottomInfo } ) } ) }