Deskripsi: - ui list jabatan - ui filter modal - ui tambah jabatan - ui select option - ui modal select option - ui edit jabatan No Issues
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import Styles from "@/constants/Styles";
|
|
import { Pressable, Text, View } from "react-native";
|
|
|
|
type Props = {
|
|
title: string
|
|
subtitle?: string
|
|
icon: React.ReactNode
|
|
desc?: string
|
|
rightTopInfo?: string
|
|
onPress?: () => void
|
|
borderType: 'all' | 'bottom'
|
|
}
|
|
|
|
export default function BorderBottomItem({ title, subtitle, icon, desc, onPress, rightTopInfo, borderType }: Props) {
|
|
return (
|
|
<Pressable style={[borderType == 'bottom' ? Styles.wrapItemBorderBottom : Styles.wrapItemBorderAll]} onPress={onPress}>
|
|
<View style={[Styles.rowItemsCenter]}>
|
|
{icon}
|
|
<View style={[Styles.rowSpaceBetween, { width: '85%' }]}>
|
|
<View style={[Styles.ml10]}>
|
|
<Text style={[Styles.textDefaultSemiBold]}>{title}</Text>
|
|
{subtitle && <Text style={[Styles.textMediumNormal, {lineHeight:15}]}>{subtitle}</Text>}
|
|
</View>
|
|
{
|
|
rightTopInfo && <Text style={[Styles.textInformation]}>{rightTopInfo}</Text>
|
|
}
|
|
</View>
|
|
|
|
</View>
|
|
{desc && <Text style={[Styles.textDefault, Styles.mt05, { textAlign: 'justify' }]}>{desc}</Text>}
|
|
</Pressable>
|
|
)
|
|
} |