import Styles from "@/constants/Styles";
import { AntDesign, MaterialCommunityIcons, MaterialIcons } from "@expo/vector-icons";
import { Text, View } from "react-native";
type Props = {
category: 'nik' | 'group' | 'position' | 'phone' | 'email' | 'gender' | 'dokumen' | 'type' | 'location' | 'owner' | 'calendar' | 'share'
value: string | undefined
border?: boolean
}
const data = {
nik: {
label: 'NIK',
icon:
},
group: {
label: 'Lembaga Desa',
icon:
},
position: {
label: 'Jabatan',
icon:
},
phone: {
label: 'No Telepon',
icon:
},
email: {
label: 'Email',
icon:
},
gender: {
label: 'Jenis Kelamin',
icon:
},
dokumen: {
label: 'Dokumen',
icon:
},
type: {
label: 'Tipe',
icon:
},
location: {
label: 'Lokasi',
icon:
},
owner: {
label: 'Pemilik',
icon:
},
calendar: {
label: 'Tanggal',
icon:
},
share: {
label: 'Bagikan',
icon:
}
}
export default function ItemDetailMember({ category, value, border }: Props) {
return (
{data[category].icon}
{data[category].label}
{value}
)
}