"use client"; import React, { useEffect, useState } from "react"; import { useParams } from "next/navigation"; import { getUserById } from "@/service/management-user/management-user"; import { Card } from "@/components/ui/card"; import { Switch } from "@/components/ui/switch"; import Image from "next/image"; import { Button } from "@/components/ui/button"; import { FileText } from "lucide-react"; interface Detail { fullname: string; birthPlace: string; birthDate: string; education: string; career: string; expertise: string; experience: string; position: string; region: string; cvUrl: string; photoUrl: string; isActive: boolean; } export default function FormDetailExperts() { const params = useParams(); const id = params?.id; const [detail, setDetail] = useState(null); useEffect(() => { async function initState() { if (id) { const response = await getUserById(String(id)); const details = response?.data?.data; setDetail(details); } } initState(); }, [id]); if (!detail) return
Loading...
; return (
Profile Picture
Not Active Active
Nama: {detail?.fullname}
Tempat / Tanggal Lahir: {detail.birthPlace},{" "} {detail.birthDate}
Pendidikan: {detail.education}
Karier:

{detail.career}

Bidang Keahlian: {detail.expertise}
Pengalaman: {detail.experience}
Posisi: {detail.position}
Wilayah: {detail.region}
CV:
); }