'use client'
import colors from '@/con/colors';
import { Box, Button, Center, Divider, Grid, GridCol, Group, Image, Paper, Skeleton, Stack, Text, Title } from '@mantine/core';
import { IconEdit } from '@tabler/icons-react';
import { useRouter } from 'next/navigation';
import { useEffect } from 'react';
import { useSnapshot } from 'valtio';
import stateProfileDesa from '../../../_state/desa/profile';
function Page() {
const router = useRouter();
const snap = useSnapshot(stateProfileDesa);
// Load data saat mount
useEffect(() => {
stateProfileDesa.profilPerbekel.findUnique.load("edit");
}, []);
const perbekel = snap.profilPerbekel.findUnique.data;
if (!perbekel) {
return (
);
}
return (
{/* Header + tombol edit */}
Profil Perbekel
}
radius="md"
onClick={() => router.push(`/admin/desa/profil/profil-perbekel/${perbekel.id}`)}
>
Edit
{/* Card Profil */}
Profil Pimpinan Badan Publik Desa Darmasaba
{ e.currentTarget.src = "/perbekel.png"; }}
loading='lazy'
/>
I.B. Surya Prabhawa Manuaba, S.H., M.H.
{/* Biodata & Info */}
);
}
export default Page;