/* eslint-disable react-hooks/exhaustive-deps */ 'use client' import stateProfileDesa from '@/app/admin/(dashboard)/_state/desa/profile'; import colors from '@/con/colors'; import { Box, Card, Center, Group, Image, Loader, Paper, Stack, Text, Title } from '@mantine/core'; import { IconPhoto } from '@tabler/icons-react'; import { useEffect } from 'react'; import { useProxy } from 'valtio/utils'; function MaskotDesa() { const state = useProxy(stateProfileDesa.maskotDesa); useEffect(() => { state.findUnique.load('edit'); }, []); const { data, loading } = state.findUnique; if (loading || !data) { return (
Sedang memuat data maskot desa...
); } return ( Ikon Desa {/* Page Title */} Maskot Desa {/* Body Description */} {data.images.length > 0 ? ( data.images.map((img, index) => ( {img.label} {/* Image Label */} {img.label} )) ) : ( Belum ada gambar maskot yang ditambahkan )} ); } export default MaskotDesa;