import { BaseBox, Grid, Spacing, TextCustom } from "@/components";
import { MainColor } from "@/constants/color-palet";
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
import { FontAwesome5, Ionicons } from "@expo/vector-icons";
import { router, useLocalSearchParams } from "expo-router";
import { View } from "react-native";
import AvatarAndBackground from "./AvatarAndBackground";
export default function ProfilSection() {
const { id } = useLocalSearchParams();
const listData = [
{
icon: (
),
label: "+6282340374412",
},
{
icon: (
),
label: "bagasbanuna@gmail.com",
},
{
icon: (
),
label: "Jalan Raya Sesetan No. 123, Bandung, Indonesia",
},
{
icon: (
),
label: "Laki-laki",
},
];
return (
<>
Nama User
@Username
{listData.map((item, index) => (
{item.icon}
{item.label}
))}
Portofolio
{Array.from({ length: 2 }).map((_, index) => (
{
console.log("press to Portofolio");
router.push(`/portofolio/${id}`);
}}
>
Nama usaha portofolio
#id-porofolio12345
))}
router.push(`/portofolio/${id}/list`)}
>
Lihat semua
>
);
}